String comparision was using current culture which resulting in incorrect resuts for some languages
This commit is contained in:
committed by
Emma L Garland
parent
53b152d501
commit
a2a2680def
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Extensions;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Core;
|
||||
|
||||
@@ -6,7 +6,7 @@ public static class UriUtilityCore
|
||||
{
|
||||
#region Uri string utilities
|
||||
|
||||
public static bool HasScheme(string uri) => uri.IndexOf("://") > 0;
|
||||
public static bool HasScheme(string uri) => uri.IndexOf("://", StringComparison.InvariantCulture) > 0;
|
||||
|
||||
public static string StartWithScheme(string uri) => StartWithScheme(uri, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user