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>
|
2000-11-01 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* url.c (construct): Rewritten for clarity. Avoids the
|
* 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;
|
for (++buf, --bufsize;
|
||||||
bufsize && *buf != s->quote_char && *buf != '\n';
|
bufsize && *buf != s->quote_char && *buf != '\n';
|
||||||
++buf, --bufsize)
|
++buf, --bufsize)
|
||||||
if (ph && *buf == '#')
|
if (!ph && *buf == '#')
|
||||||
ph = buf;
|
ph = buf;
|
||||||
if (!bufsize)
|
if (!bufsize)
|
||||||
{
|
{
|
||||||
@ -294,7 +294,7 @@ htmlfindurl (const char *buf, int bufsize, int *size, int init,
|
|||||||
p = buf;
|
p = buf;
|
||||||
for (; bufsize && !ISSPACE (*buf) && *buf != '>';
|
for (; bufsize && !ISSPACE (*buf) && *buf != '>';
|
||||||
++buf, --bufsize)
|
++buf, --bufsize)
|
||||||
if (ph && *buf == '#')
|
if (!ph && *buf == '#')
|
||||||
ph = buf;
|
ph = buf;
|
||||||
if (!bufsize)
|
if (!bufsize)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user