Second fix for security exception
This commit is contained in:
@@ -41,11 +41,8 @@ namespace Swarmops.Frontend.Pages.Public
|
||||
|
||||
if (Request["Culture"] != null)
|
||||
{
|
||||
CultureInfo culture = new CultureInfo(Request["Culture"]);
|
||||
Response.SetCookie(new HttpCookie("PreferredCulture", Request["Culture"]));
|
||||
Thread.CurrentThread.CurrentCulture = culture;
|
||||
Thread.CurrentThread.CurrentUICulture = 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
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
-->
|
||||
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
||||
<system.web>
|
||||
<httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
|
||||
<pages validateRequest="false" />
|
||||
<authorization>
|
||||
<allow users="*" />
|
||||
</authorization>
|
||||
|
||||
Reference in New Issue
Block a user