From b723b936c53d251d43a1e5999ca81c88cf2cad3f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 11 Aug 2008 12:53:41 +0000 Subject: [PATCH] Minor bugfixes --- libs/cbi/luasrc/cbi.lua | 2 +- libs/web/luasrc/dispatcher.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 0ec2ff815..ad5a51974 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -649,7 +649,7 @@ function AbstractValue.parse(self, section) if self.rmempty or self.optional then self:remove(section) elseif not fvalue or fvalue ~= cvalue then - self.tag_missing[section] = true + --self.tag_missing[section] = true end end end diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index ca507bebd..4253fc04a 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -172,7 +172,8 @@ function dispatch(request) local authen = authenticator[track.sysauth_authenticator] local def = (type(track.sysauth) == "string") and 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) if not luci.util.contains(accs, user) then -- 2.25.1