From 042bd2be13c69a07114db8baf6db28cc5048ec51 Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 16 Jun 2016 12:05:25 +0100 Subject: [PATCH] Fix identifying the scheme portion of a URL --- modules/juce_core/network/juce_URL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)