From 655164549c30c725ff9e9802c8cc9e191787505d Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 17 Oct 2017 10:48:33 +0200 Subject: [PATCH] Third, proper fix for security exception --- Site/Pages/v5/Public/Signup.aspx | 2 +- Site/Pages/v5/Public/Signup.aspx.cs | 2 +- Site/Pages/v5/Public/web.config | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Site/Pages/v5/Public/Signup.aspx b/Site/Pages/v5/Public/Signup.aspx index c7622779..6c658d8a 100644 --- a/Site/Pages/v5/Public/Signup.aspx +++ b/Site/Pages/v5/Public/Signup.aspx @@ -553,7 +553,7 @@ function setLanguage(cultureCode) { - document.location = document.location + "&Culture=" + cultureCode; + document.location = document.location + "?Culture=" + cultureCode; } var suppressChecks = false; diff --git a/Site/Pages/v5/Public/Signup.aspx.cs b/Site/Pages/v5/Public/Signup.aspx.cs index b060af99..259f3571 100644 --- a/Site/Pages/v5/Public/Signup.aspx.cs +++ b/Site/Pages/v5/Public/Signup.aspx.cs @@ -42,7 +42,7 @@ namespace Swarmops.Frontend.Pages.Public if (Request["Culture"] != null) { Response.SetCookie(new HttpCookie("PreferredCulture", Request["Culture"])); - Response.Redirect(Request.RawUrl.Substring (0, Request.RawUrl.IndexOf ("&Culture=")), true); + Response.Redirect(Request.RawUrl.Substring (0, Request.RawUrl.IndexOf ("?Culture=")), true); } // Find what organization we're supposed to sign up to diff --git a/Site/Pages/v5/Public/web.config b/Site/Pages/v5/Public/web.config index c8d38dcf..188a433d 100644 --- a/Site/Pages/v5/Public/web.config +++ b/Site/Pages/v5/Public/web.config @@ -4,8 +4,6 @@ --> - -