diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-07 10:02:58 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-05-07 10:02:58 +0000 |
commit | 525118dfe8bb3f6b874db7920dc0ee04eede0585 (patch) | |
tree | c2f57a84561e427c09ea7a248f438c187a004c58 /src/htsparse.c | |
parent | aad35562b3293c792e858b36c3ca7d1ab2f386c6 (diff) |
Charset fixes
Diffstat (limited to 'src/htsparse.c')
-rw-r--r-- | src/htsparse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/htsparse.c b/src/htsparse.c index 18059f5..35d1bb9 100644 --- a/src/htsparse.c +++ b/src/htsparse.c @@ -230,7 +230,10 @@ Please visit our Website: http://www.httrack.com if (makeindex_fp) { \ char BIGSTK tempo[1024]; \ if (makeindex_links == 1) { \ - sprintf(tempo,"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF,makeindex_firstlink); \ + char BIGSTK link_escaped[HTS_URLMAXSIZE*2]; \ + strcpybuff(link_escaped, makeindex_firstlink); \ + escape_check_url(link_escaped); \ + sprintf(tempo,"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF,link_escaped); \ } else \ tempo[0]='\0'; \ fprintf(makeindex_fp,template_footer, \ |