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.
This commit is contained in:
Mads Krohn
2014-09-22 12:14:32 +02:00
parent 34d7a13e14
commit dd0f510b5e

View File

@@ -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;
}
}