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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user