]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/url.cpp
set string length properly in wxString(p, conv, len) ctor (patch 755593)
[wxWidgets.git] / src / common / url.cpp
index e64d31c38159615e8410867ccae50ad8d7515ab0..192c68fd3ba160e51d5d3f92f9203db990d5bdcc 100644 (file)
@@ -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'));