Yet another critical HTTPS bug

This commit is contained in:
Rick Falkvinge
2013-11-23 18:31:12 +00:00
parent a036fbfc43
commit 33217e6fd6
+1 -1
View File
@@ -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:"));
}