X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8746da256e827b700aaf173669bd5bbc97025c7..137c8bde085d6d5b7c459902d2ea1a198ab48765:/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;