mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04: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