From dd0f510b5ea7aa3577acafbb3cfc84d65d9f988a Mon Sep 17 00:00:00 2001 From: Mads Krohn Date: Mon, 22 Sep 2014 12:14:32 +0200 Subject: [PATCH] Fix for InitializeLegacyUrlReplaceCharacters When using IsNullOrWhiteSpace the white space rule that will replace white spaces with dashes are ignored. This leads to unexpected behavior. Changed the code to use IsNullOrEmpty instead to match the behavior of the LegacyShortStringHelper. --- src/Umbraco.Core/Strings/DefaultShortStringHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs b/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs index 8ba97db220..3414389704 100644 --- a/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs +++ b/src/Umbraco.Core/Strings/DefaultShortStringHelper.cs @@ -59,7 +59,7 @@ namespace Umbraco.Core.Strings { foreach (var node in UmbracoConfig.For.UmbracoSettings().RequestHandler.CharCollection) { - if (node.Char.IsNullOrWhiteSpace() == false) + if(string.IsNullOrEmpty(node.Char) == false) _urlReplaceCharacters[node.Char] = node.Replacement; } }