allow periods in wxFileSystem URL anchors (patch #2265)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -193,8 +193,10 @@ wxString wxFileSystemHandler::GetAnchor(const wxString& location)
|
|||||||
|
|
||||||
for (int i = l-1; i >= 0; i--) {
|
for (int i = l-1; i >= 0; i--) {
|
||||||
c = location[i];
|
c = location[i];
|
||||||
if (c == wxT('#')) return location.Right(l-i-1);
|
if (c == wxT('#'))
|
||||||
else if ((c == wxT('.')) || (c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) return wxEmptyString;
|
return location.Right(l-i-1);
|
||||||
|
else if ((c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':')))
|
||||||
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user