From 36eea348bac5c9aee7973a6ce4617326cd2f2139 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Tue, 30 Oct 2012 06:23:29 +0600 Subject: [PATCH] changes the fix for U4-1097 to use an InvariantEquals instead of a direct equals just in case! --- src/Umbraco.Web/umbraco.presentation/default.aspx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/default.aspx.cs b/src/Umbraco.Web/umbraco.presentation/default.aspx.cs index 091fa72be3..c40b42d54f 100644 --- a/src/Umbraco.Web/umbraco.presentation/default.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/default.aspx.cs @@ -6,6 +6,7 @@ using System.Web.UI; using System.IO; using System.Xml; using System.Text.RegularExpressions; +using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Web; using Umbraco.Web.Routing; @@ -135,7 +136,7 @@ namespace umbraco { LogHelper.Debug("Umbraco is running in preview mode.", Context.Trace); - if (Response.ContentType == "text/html") // ASP.NET default value + if (Response.ContentType.InvariantEquals("text/html")) // ASP.NET default value { int pos = text.ToLower().IndexOf(""); if (pos > -1)