OUR-292 Login not working due to redirect URL

#OUR-292 Fixed
This commit is contained in:
Sebastiaan Janssen
2015-07-13 17:56:17 +02:00
parent 2198173604
commit 4c8a8a015e
+9 -3
View File
@@ -66,9 +66,15 @@ namespace our.usercontrols
{
if (!string.IsNullOrEmpty(redirectUrl))
{
var nextUrl = new Uri(redirectUrl);
if (Request.Url.Host == nextUrl.Host)
Response.Redirect(redirectUrl);
try
{
var newUrl = new Uri(redirectUrl);
if (newUrl.Host != Request.Url.Host)
Response.Redirect("/");
}
catch(Exception) { }
Response.Redirect(redirectUrl);
}
else
{