summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-02 18:39:21 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-02 18:39:21 +0000
commit44688bdbdf741505496d6cbd3f2b44f2936b6fa5 (patch)
tree9310c5deb02984c602c3d3ac66f719ea853911d7 /src
parent6ce91ec1f3602402c7d82ee36b3287bf61f02ecb (diff)
Fixed issue #42 (long query strings with accents)
Diffstat (limited to 'src')
-rw-r--r--src/htsparse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 6869293..606ecb6 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -2155,10 +2155,8 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
// we need to encode query string non-ascii chars,
// leaving the encoding as-is (unlike the file part)
- inplace_escape_check_url(query, sizeof(query));
-
- // copy back query
- strcatbuff(lien, query); /* restore */
+ // and copy back query
+ append_escape_check_url(query, lien, sizeof(lien));
}
// convertir les éventuels \ en des / pour éviter des problèmes de reconnaissance!