Fixed issue #42 (long query strings with accents)

This commit is contained in:
Xavier Roche
2014-05-02 18:39:21 +00:00
parent 6ce91ec1f3
commit 44688bdbdf

View File

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