From 86b4d68bc6fc9b6d7dd90b377abded7941fdb0cf Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 8 Sep 2014 19:24:16 +0000 Subject: [PATCH] --- Site5/Master-v5.master.cs | 2 +- Site5/Security/Login.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index f99f9b71..bda38841 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -63,7 +63,7 @@ namespace Swarmops string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"]; - bool cloudFlareSsl = (cloudFlareVisitorScheme == "\"scheme\":\"https\""? true: false); + bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"") ? true : false); if (Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server { diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 5f2dfe5b..cc5f0ecb 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -34,7 +34,7 @@ namespace Swarmops.Pages.Security string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"]; - bool cloudFlareSsl = (cloudFlareVisitorScheme == "\"scheme\":\"https\""? true: false); + bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"")? true: false); if (Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server {