1
0
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:
hniksic 2000-10-31 16:38:57 -08:00
parent f6715dd08d
commit 846b045a69
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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;