1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Don't crash on <meta http-equiv=refresh>.

Published in <sxshep1q3je.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2002-01-31 19:34:31 -08:00
parent a861f718ed
commit 0e40fc9a3c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-02-01 Hrvoje Niksic <hniksic@arsdigita.com>
* html-url.c (tag_handle_meta): Don't crash on <meta
http-equiv=refresh> where content is missing.
2002-01-31 Herold Heiko <Heiko.Herold@previnet.it> 2002-01-31 Herold Heiko <Heiko.Herold@previnet.it>
* ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h, * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h,

View File

@ -521,10 +521,13 @@ tag_handle_meta (int tagid, struct taginfo *tag, struct map_context *ctx)
get to the URL. */ get to the URL. */
struct urlpos *entry; struct urlpos *entry;
int attrind; int attrind;
char *p, *refresh = find_attr (tag, "content", &attrind);
int timeout = 0; int timeout = 0;
char *p;
char *refresh = find_attr (tag, "content", &attrind);
if (!refresh)
return;
for (p = refresh; ISDIGIT (*p); p++) for (p = refresh; ISDIGIT (*p); p++)
timeout = 10 * timeout + *p - '0'; timeout = 10 * timeout + *p - '0';