summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/sauth.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-11 10:51:02 +0000
committerSteven Barth <steven@midlink.org>2008-08-11 10:51:02 +0000
commit37b3fba68869e1d96a46990caf02ccd67c7b93a9 (patch)
tree7fdddef02ef325d1947f4e07d75f0c9f6da81f8a /libs/web/luasrc/sauth.lua
parentfdce917da5461f7b2a1a870be34da1a785cbfc4c (diff)
Fixed last commit
Diffstat (limited to 'libs/web/luasrc/sauth.lua')
-rw-r--r--libs/web/luasrc/sauth.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/web/luasrc/sauth.lua b/libs/web/luasrc/sauth.lua
index c43117f3a..7c483119c 100644
--- a/libs/web/luasrc/sauth.lua
+++ b/libs/web/luasrc/sauth.lua
@@ -46,7 +46,9 @@ end
--- Prepare session storage by creating the session directory.
function prepare()
luci.fs.mkdir(sessionpath)
- if not luci.fs.chmod(sessionpath, "a-rwx,u+rwx") then
+ luci.fs.chmod(sessionpath, "a-rwx,u+rwx")
+
+ if not sane() then
error("Security Exception: Session path is not sane!")
end
end