Minor bugfixes
authorSteven Barth <steven@midlink.org>
Mon, 11 Aug 2008 12:53:41 +0000 (12:53 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 11 Aug 2008 12:53:41 +0000 (12:53 +0000)
libs/cbi/luasrc/cbi.lua
libs/web/luasrc/dispatcher.lua

index 0ec2ff815de7095fe94c56fefc5ac6ff9498d62c..ad5a5197444325fc2a359cb69e183e73d5eecfb2 100644 (file)
@@ -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
index ca507bebdf7fdb648e9d6830401de9a522f73b8f..4253fc04a62468f95ec1bcac2596418a5b6c8912 100644 (file)
@@ -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