From a03c55c13c674ea6f8489b764d5414a4979b348b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Jul 2003 22:23:50 +0000 Subject: [PATCH] handle as well as in URLs (part of patch 649438) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/url.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/url.cpp b/src/common/url.cpp index e64d31c381..192c68fd3b 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -464,12 +464,16 @@ wxString wxURL::ConvertFromURI(const wxString& uri) i++; if (uri[i] >= wxT('A') && uri[i] <= wxT('F')) code = (uri[i] - wxT('A') + 10) * 16; + else if (uri[i] >= wxT('a') && uri[i] <= wxT('f')) + code = (uri[i] - wxT('a') + 10) * 16; else code = (uri[i] - wxT('0')) * 16; i++; if (uri[i] >= wxT('A') && uri[i] <= wxT('F')) code += (uri[i] - wxT('A')) + 10; + else if (uri[i] >= wxT('a') && uri[i] <= wxT('f')) + code += (uri[i] - wxT('a')) + 10; else code += (uri[i] - wxT('0')); -- 2.45.2