summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-14 17:21:12 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-14 17:21:12 +0000
commit180308e6ec525bd051fad5e0e0bfd4bb17442aef (patch)
treef1e46fff7bc636c9c3d6083c2e79ce8d77675327 /src
parent90326d5cf6aed6f91ea37e833c4536e248079ff3 (diff)
Escaping fixes when the final disk filename contains a %
Diffstat (limited to 'src')
-rw-r--r--src/htscore.c2
-rw-r--r--src/htsparse.c1
-rw-r--r--src/htstools.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/htscore.c b/src/htscore.c
index e0293fa..dd57b29 100644
--- a/src/htscore.c
+++ b/src/htscore.c
@@ -239,7 +239,7 @@ if (makeindex_fp) { \
if (makeindex_links == 1) { \
char BIGSTK link_escaped[HTS_URLMAXSIZE*2]; \
strcpybuff(link_escaped, makeindex_firstlink); \
- escape_check_url(link_escaped); \
+ escape_uri_utf(link_escaped); \
sprintf(tempo,"<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">"CRLF, link_escaped); \
} else \
tempo[0]='\0'; \
diff --git a/src/htsparse.c b/src/htsparse.c
index 69dabde..e1380a0 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -732,6 +732,7 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
}
// Body
+ escape_uri_utf(tempo);
fprintf(makeindex_fp, template_body, tempo, s);
}
}
diff --git a/src/htstools.c b/src/htstools.c
index bb2915d..77fa70e 100644
--- a/src/htstools.c
+++ b/src/htstools.c
@@ -898,7 +898,7 @@ HTSEXT_API int hts_buildtopindex(httrackp * opt, const char *path,
char BIGSTK hname[HTS_URLMAXSIZE * 2];
strcpybuff(hname, sortedElts[i]->name);
- escape_check_url(hname);
+ escape_uri_utf(hname);
/* Changed category */
if (strcmp(category, sortedElts[i]->category) != 0) {