From 1f66f44aee152299191c125656af0435a787169f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 7 Oct 2008 17:31:24 +0000 Subject: Modified modelfunctions library to include validation in get/setfiledetails. Modified all uses to validate the file name - this was a major security hole. git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openntpd-model.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openntpd-model.lua') diff --git a/openntpd-model.lua b/openntpd-model.lua index 42f17e4..a66160c 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -151,7 +151,6 @@ function get_filedetails() end function update_filedetails(filedetails) - filedetails.value.filename.value = configfile - return modelfunctions.setfiledetails(filedetails) + return modelfunctions.setfiledetails(filedetails, {configfile}) end -- cgit v1.2.3