mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Remove URL escaping when encoding
This commit is contained in:
parent
5ae1199bf1
commit
c15e8bdac3
1 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@ function login_walkthrough (user)
|
|||
-- All the redirections has been made
|
||||
local redirect_url = login[user]["redirect_url"]
|
||||
login[user] = nil
|
||||
return redirect(ngx.unescape_uri(redirect_url))
|
||||
return redirect(redirect_url)
|
||||
else
|
||||
-- Redirect to the next domain
|
||||
for _, domain in ipairs(login[user]["domains"]) do
|
||||
|
@ -221,7 +221,7 @@ function logout_walkthrough (user)
|
|||
-- All the redirections has been made
|
||||
local redirect_url = logout[user]["redirect_url"]
|
||||
logout[user] = nil
|
||||
return redirect(ngx.unescape_uri(redirect_url))
|
||||
return redirect(redirect_url)
|
||||
else
|
||||
-- Redirect to the next domain
|
||||
for _, domain in ipairs(logout[user]["domains"]) do
|
||||
|
@ -309,6 +309,6 @@ if auth_header then
|
|||
end
|
||||
|
||||
-- Else redirect to portal
|
||||
local back_url = ngx.escape_uri(ngx.var.scheme .. "://" .. ngx.var.http_host .. ngx.var.uri)
|
||||
local back_url = ngx.var.scheme .. "://" .. ngx.var.http_host .. ngx.var.uri
|
||||
-- From another domain
|
||||
return redirect(portal_url.."?r="..ngx.encode_base64(back_url))
|
||||
|
|
Loading…
Add table
Reference in a new issue