mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Fix oversight in escape handling.
This commit is contained in:
parent
e6fd9cb793
commit
831f376303
@ -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
|
||||
|
@ -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 = '/';
|
||||
|
Loading…
Reference in New Issue
Block a user