From 91915e1c132306a901efdc7a0e17e165706b12bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 31 May 2008 09:44:03 +0000 Subject: [PATCH] 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 --- src/common/filesys.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 71dc13788b..fc12af7d55 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -193,8 +193,10 @@ wxString wxFileSystemHandler::GetAnchor(const wxString& location) for (int i = l-1; i >= 0; i--) { c = location[i]; - if (c == wxT('#')) return location.Right(l-i-1); - else if ((c == wxT('.')) || (c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) return wxEmptyString; + if (c == wxT('#')) + return location.Right(l-i-1); + else if ((c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) + return wxEmptyString; } return wxEmptyString; } -- 2.47.2