We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b152d commit a2a2680Copy full SHA for a2a2680
src/Umbraco.Core/UriUtilityCore.cs
@@ -1,12 +1,12 @@
1
-using Umbraco.Extensions;
+using Umbraco.Extensions;
2
3
namespace Umbraco.Cms.Core;
4
5
public static class UriUtilityCore
6
{
7
#region Uri string utilities
8
9
- public static bool HasScheme(string uri) => uri.IndexOf("://") > 0;
+ public static bool HasScheme(string uri) => uri.IndexOf("://", StringComparison.InvariantCulture) > 0;
10
11
public static string StartWithScheme(string uri) => StartWithScheme(uri, null);
12
0 commit comments