[fix] Strange Raspi regex error + trailing spaces

This commit is contained in:
Kload 2014-04-21 13:04:05 +02:00
parent ccafd26a00
commit baa62e1afe

View file

@ -635,7 +635,7 @@ then
elseif is_logged_in() and uri_args.r then elseif is_logged_in() and uri_args.r then
back_url = ngx.decode_base64(uri_args.r) back_url = ngx.decode_base64(uri_args.r)
if not string.match(back_url, "^http[s]?:\/\/"..ngx.var.host.."\/") if not string.match(back_url, "^http[s]?://"..ngx.var.host.."/")
and not string.match(back_url, ".*"..conf.login_arg.."=%d+$") then and not string.match(back_url, ".*"..conf.login_arg.."=%d+$") then
cda_key = tostring(math.random(1111111, 9999999)) cda_key = tostring(math.random(1111111, 9999999))
login[cda_key] = ngx.var.cookie_SSOwAuthUser login[cda_key] = ngx.var.cookie_SSOwAuthUser