summaryrefslogtreecommitdiffstats
path: root/bgp-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-07 17:31:24 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-07 17:31:24 +0000
commit6e22c154c872145a8d73951975458005bddbfc59 (patch)
tree26642d3b8b9cf5b199fe847ce8218209ebc5ac86 /bgp-model.lua
parent8e208afe45bd9d4f9a76c1e818142dc69a371afd (diff)
downloadacf-quagga-6e22c154c872145a8d73951975458005bddbfc59.tar.bz2
acf-quagga-6e22c154c872145a8d73951975458005bddbfc59.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/quagga/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'bgp-model.lua')
-rw-r--r--bgp-model.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgp-model.lua b/bgp-model.lua
index 1afe0e9..f54c12a 100644
--- a/bgp-model.lua
+++ b/bgp-model.lua
@@ -68,8 +68,7 @@ function getconfigfile()
end
function setconfigfile(filedetails)
- filedetails.value.filename.value = configfile
- return modelfunctions.setfiledetails(filedetails)
+ return modelfunctions.setfiledetails(filedetails, {configfile})
end
function startstop_service(action)