Fix amazingly broken wxURI::CharToHex() to only accept hex digits
The valid range for hex digits is A..F, not A..Z.
This commit is contained in:
parent
5245afa263
commit
f9b35855cf
@ -90,9 +90,9 @@ void wxURI::Clear()
|
||||
/* static */
|
||||
int wxURI::CharToHex(char c)
|
||||
{
|
||||
if ((c >= 'A') && (c <= 'Z'))
|
||||
if ((c >= 'A') && (c <= 'F'))
|
||||
return c - 'A' + 10;
|
||||
if ((c >= 'a') && (c <= 'z'))
|
||||
if ((c >= 'a') && (c <= 'f'))
|
||||
return c - 'a' + 10;
|
||||
if ((c >= '0') && (c <= '9'))
|
||||
return c - '0';
|
||||
|
Loading…
Reference in New Issue
Block a user