[svn] Fix oversight in escape handling.

This commit is contained in:
hniksic 2003-09-25 15:31:35 -07:00
parent e6fd9cb793
commit 831f376303
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2003-09-24 Hrvoje Niksic <hniksic@xemacs.org>
* url.c (url_escape_1): Revert unintentional change to lowercase
xdigit escapes.
(url_escape_dir): Document that this function depends on the
output of url_escape_1.
2003-09-23 Hrvoje Niksic <hniksic@xemacs.org>
* progress.c (create_image): Print the current ETA if we're done

View File

@ -198,8 +198,8 @@ url_escape_1 (const char *s, unsigned char mask, int allow_passthrough)
{
unsigned char c = *p1++;
*p2++ = '%';
*p2++ = XNUM_TO_digit (c >> 4);
*p2++ = XNUM_TO_digit (c & 0xf);
*p2++ = XNUM_TO_DIGIT (c >> 4);
*p2++ = XNUM_TO_DIGIT (c & 0xf);
}
else
*p2++ = *p1++;
@ -1130,6 +1130,7 @@ url_escape_dir (const char *dir)
for (; *h; h++, t++)
{
/* url_escape_1 having converted '/' to "%2F" exactly. */
if (*h == '%' && h[1] == '2' && h[2] == 'F')
{
*t = '/';