mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Strange Raspi regex error + trailing spaces
This commit is contained in:
parent
ccafd26a00
commit
baa62e1afe
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue