From 2ea2dc1741f7c83621ad5b928460ab0c93f77a4f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 6 Jun 2015 15:09:15 +0200 Subject: [PATCH] Petty cosmetics --- Site5/Security/Login.aspx | 2 +- Site5/Security/Login.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Site5/Security/Login.aspx b/Site5/Security/Login.aspx index 9a862209..fcb5299b 100644 --- a/Site5/Security/Login.aspx +++ b/Site5/Security/Login.aspx @@ -217,7 +217,7 @@
diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 16724454..b20f406c 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -122,7 +122,7 @@ namespace Swarmops.Pages.Security // only check client-side as many server sites de-SSL the connection before reaching the web server { if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && - !Request.Url.ToString().StartsWith ("http://localhost:")) + !(Request.Url.ToString().StartsWith ("http://localhost:") && Debugger.IsAttached)) // Debugger.IsAttached is necessary, as link can be faked { Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); }