more standard (although less RFC-conformant) treatment of file: URIs (patch 1415189)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user