diff --git a/ChangeLog b/ChangeLog index 574084596..a376ee5eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-04-27 Richard Frith-Macdonald + + * Source/NSURL.m: Fix error unescaping uppercase hex digits. + 2006-04-26 Saso Kiselkov * Headers/Foundation/NSException.h: Support native exceptions. diff --git a/Source/NSURL.m b/Source/NSURL.m index 150c63f59..57f36cc3f 100644 --- a/Source/NSURL.m +++ b/Source/NSURL.m @@ -410,7 +410,7 @@ static void unescape(const char *from, char * to) { c = *from - '0'; } - else if (*from <= 'A') + else if (*from <= 'F') { c = *from - 'A' + 10; } @@ -433,7 +433,7 @@ static void unescape(const char *from, char * to) { c |= *from - '0'; } - else if (*from <= 'A') + else if (*from <= 'F') { c |= *from - 'A' + 10; }