mirror of
https://github.com/mirror/wget.git
synced 2024-12-30 23:10:13 +08:00
[svn] Applied my patch from <sxs3dhczfv5.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
f6715dd08d
commit
846b045a69
@ -1,3 +1,7 @@
|
||||
2000-11-01 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* html.c (htmlfindurl): Fix recognition of # HTML fragments.
|
||||
|
||||
2000-11-01 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* url.c (construct): Rewritten for clarity. Avoids the
|
||||
|
@ -270,7 +270,7 @@ htmlfindurl (const char *buf, int bufsize, int *size, int init,
|
||||
for (++buf, --bufsize;
|
||||
bufsize && *buf != s->quote_char && *buf != '\n';
|
||||
++buf, --bufsize)
|
||||
if (ph && *buf == '#')
|
||||
if (!ph && *buf == '#')
|
||||
ph = buf;
|
||||
if (!bufsize)
|
||||
{
|
||||
@ -294,7 +294,7 @@ htmlfindurl (const char *buf, int bufsize, int *size, int init,
|
||||
p = buf;
|
||||
for (; bufsize && !ISSPACE (*buf) && *buf != '>';
|
||||
++buf, --bufsize)
|
||||
if (ph && *buf == '#')
|
||||
if (!ph && *buf == '#')
|
||||
ph = buf;
|
||||
if (!bufsize)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user