diff --git a/modules/juce_core/network/juce_URL.cpp b/modules/juce_core/network/juce_URL.cpp index 9a0a3e66a6..9d574bf7db 100644 --- a/modules/juce_core/network/juce_URL.cpp +++ b/modules/juce_core/network/juce_URL.cpp @@ -136,7 +136,7 @@ namespace URLHelpers || url[i] == '+' || url[i] == '-' || url[i] == '.') ++i; - return url[i] == ':' ? i + 1 : 0; + return url.substring (i) == "://" ? i + 1 : 0; } static int findStartOfNetLocation (const String& url)