From 33217e6fd639a2628f880e8a2a18e7086e1405fa Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 23 Nov 2013 18:31:12 +0000 Subject: [PATCH] Yet another critical HTTPS bug --- Site5/Security/Login.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index b4b7532b..7de793e7 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -35,7 +35,7 @@ namespace Swarmops.Pages.Security if ((!Request.IsSecureConnection) || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection { - if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://localhost:") && Request.Url.ToString().StartsWith("http://activizr-")) + if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://localhost:") && !Request.Url.ToString().StartsWith("http://activizr-")) { Response.Redirect(Request.Url.ToString().Replace("http:", "https:")); }