From: Steven Barth Date: Mon, 11 Aug 2008 10:51:02 +0000 (+0000) Subject: Fixed last commit X-Git-Tag: 0.8.0~470 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37b3fba68869e1d96a46990caf02ccd67c7b93a9;p=oweals%2Fluci.git Fixed last commit --- 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