X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8746da256e827b700aaf173669bd5bbc97025c7..e225fe17a8dc6a209d224cc966463644c6cc466f:/src/common/uri.cpp diff --git a/src/common/uri.cpp b/src/common/uri.cpp index c195d13729..ccc0149a4b 100644 --- a/src/common/uri.cpp +++ b/src/common/uri.cpp @@ -432,11 +432,18 @@ const wxChar* wxURI::ParseAuthority(const wxChar* uri) // authority = [ userinfo "@" ] host [ ":" port ] if (*uri == wxT('/') && *(uri+1) == wxT('/')) { + //skip past the two slashes uri += 2; + // ############# DEVIATION FROM RFC ######################### + // Don't parse the server component for file URIs + if(m_scheme != wxT("file")) + { + //normal way uri = ParseUserInfo(uri); uri = ParseServer(uri); return ParsePort(uri); + } } return uri;