From 5fd5c21d3343f3d034d8abaa3b1535387fb1b07a 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/openssh/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openssh-model.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openssh-model.lua') diff --git a/openssh-model.lua b/openssh-model.lua index 71bebdd..93997e4 100644 --- a/openssh-model.lua +++ b/openssh-model.lua @@ -58,8 +58,7 @@ function getconfigfile() end function setconfigfile(filedetails) - filedetails.value.filename.value = configfile - return modelfunctions.setfiledetails(filedetails) + return modelfunctions.setfiledetails(filedetails, {configfile}) end function read_config() -- cgit v1.2.3