diff options
| author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 18:31:40 +0000 |
|---|---|---|
| committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 18:31:40 +0000 |
| commit | 27752e368cc8e6325894d3a2a31f3faa80cbd93f (patch) | |
| tree | 4a3e1609b17eef009d256926a8793e17237d16ae /src/htscore.c | |
| parent | 37187f967fb2a2c7257fdc1965c16381ffed4a2c (diff) | |
Rewrite template formatting to be format-injection proof.
Diffstat (limited to 'src/htscore.c')
| -rw-r--r-- | src/htscore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htscore.c b/src/htscore.c index 80efcb9..b1dac1a 100644 --- a/src/htscore.c +++ b/src/htscore.c @@ -387,9 +387,9 @@ if (makeindex_fp) { \ sprintf(tempo,"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF, link_escaped); \ } else \ tempo[0]='\0'; \ - fprintf(makeindex_fp,template_footer, \ + hts_template_format(makeindex_fp,template_footer, \ "<!-- Mirror and index made by HTTrack Website Copier/"HTTRACK_VERSION" "HTTRACK_AFF_AUTHORS" -->", \ - tempo \ + tempo, /* EOF */ NULL \ ); \ fflush(makeindex_fp); \ fclose(makeindex_fp); /* à ne pas oublier sinon on passe une nuit blanche */ \ |
