Decode url for redirection purpose during authentication.

This commit is contained in:
2016-04-27 16:07:24 +02:00
parent 0e3419fea0
commit 12a3898487
@@ -3,8 +3,8 @@ note
This module allows the use Session Based Authentication using Cookies to restrict access This module allows the use Session Based Authentication using Cookies to restrict access
by looking up users in the given providers. by looking up users in the given providers.
]" ]"
date: "$Date: 2016-04-13 10:59:18 +0200 (mer., 13 avr. 2016) $" date: "$Date: 2016-04-27 16:04:18 +0200 (mer., 27 avr. 2016) $"
revision: "$Revision: 98616 $" revision: "$Revision: 98643 $"
class class
CMS_SESSION_AUTH_MODULE CMS_SESSION_AUTH_MODULE
@@ -216,8 +216,12 @@ feature {NONE} -- Implementation: routes
api.record_user_login (l_user) api.record_user_login (l_user)
create {GENERIC_VIEW_CMS_RESPONSE} r.make (req, res, api) create {GENERIC_VIEW_CMS_RESPONSE} r.make (req, res, api)
if attached {WSF_STRING} req.item ("destination") as p_destination then if
r.set_redirection (p_destination.url_encoded_value) attached {WSF_STRING} req.item ("destination") as p_destination and then
attached p_destination.value as v and then
v.is_valid_as_string_8
then
r.set_redirection (v.to_string_8)
else else
r.set_redirection ("") r.set_redirection ("")
end end