]> sjero.net Git - wget/commitdiff
[svn] Fix oversight in escape handling.
authorhniksic <devnull@localhost>
Thu, 25 Sep 2003 22:31:35 +0000 (15:31 -0700)
committerhniksic <devnull@localhost>
Thu, 25 Sep 2003 22:31:35 +0000 (15:31 -0700)
src/ChangeLog
src/url.c

index a8735aa8a1f14eb0acc2285e0d11077d2d3ddb99..78c86a9bfaf876cf13856ae9b2d22fdcf8007b0c 100644 (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
index d318b1485af6d337841297584e1facf8c645f2d3..5468d9c937075e25f52a218dc040cb53566d5995 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -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 = '/';