diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-10-07 17:31:24 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-10-07 17:31:24 +0000 |
commit | 1c14586775a3bd2d12f2070e1ca8941aaf5e1076 (patch) | |
tree | 8d74a4edddaf6aaaf5b7cfd842dcbd18e0d7eaf1 | |
parent | a1117e99b1e902b1306f43e8d589fae921d98017 (diff) | |
download | acf-dhcp-1c14586775a3bd2d12f2070e1ca8941aaf5e1076.tar.bz2 acf-dhcp-1c14586775a3bd2d12f2070e1ca8941aaf5e1076.tar.xz |
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/dhcp/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | dhcp-model.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index fd01981..4d3ff5e 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -758,8 +758,7 @@ getconfigfile = function() end setconfigfile = function(filedetails) - filedetails.value.filename.value = configfile - return modelfunctions.setfiledetails(filedetails) + return modelfunctions.setfiledetails(filedetails, {configfile}) end getleases = function() |