Minor bugfixes

This commit is contained in:
Steven Barth 2008-08-11 12:53:41 +00:00
parent 37b3fba688
commit b723b936c5
2 changed files with 3 additions and 2 deletions

View file

@ -649,7 +649,7 @@ function AbstractValue.parse(self, section)
if self.rmempty or self.optional then if self.rmempty or self.optional then
self:remove(section) self:remove(section)
elseif not fvalue or fvalue ~= cvalue then elseif not fvalue or fvalue ~= cvalue then
self.tag_missing[section] = true --self.tag_missing[section] = true
end end
end end
end end

View file

@ -172,7 +172,8 @@ function dispatch(request)
local authen = authenticator[track.sysauth_authenticator] local authen = authenticator[track.sysauth_authenticator]
local def = (type(track.sysauth) == "string") and track.sysauth local def = (type(track.sysauth) == "string") and track.sysauth
local accs = def and {track.sysauth} or track.sysauth local accs = def and {track.sysauth} or track.sysauth
local sess = luci.http.getcookie("sysauth"):match("^[A-F0-9]+$") local sess = luci.http.getcookie("sysauth")
sess = sess and sess:match("^[A-F0-9]+$")
local user = luci.sauth.read(sess) local user = luci.sauth.read(sess)
if not luci.util.contains(accs, user) then if not luci.util.contains(accs, user) then