Fixed last commit
This commit is contained in:
parent
fdce917da5
commit
37b3fba688
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ end
|
||||||
--- Prepare session storage by creating the session directory.
|
--- Prepare session storage by creating the session directory.
|
||||||
function prepare()
|
function prepare()
|
||||||
luci.fs.mkdir(sessionpath)
|
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!")
|
error("Security Exception: Session path is not sane!")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue