summaryrefslogtreecommitdiff
path: root/src/htsparse.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:02:50 +0000
committerXavier Roche <xroche@users.noreply.github.com>2012-03-19 13:02:50 +0000
commit1096a6b82c4110f7a15132c9a2b525899d62380c (patch)
tree253b431bc06ce806ee47aa7b7c4285da8c5503d6 /src/htsparse.c
parent211c870cbaf49795e5e15b7726f5f52da7a8cf4a (diff)
httrack 3.43.12 (again)
Diffstat (limited to 'src/htsparse.c')
-rw-r--r--src/htsparse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index e2f955a..34ef831 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -1953,12 +1953,12 @@ int htsparse(htsmoduleStruct* str, htsmoduleStructExtended* stre) {
unescape_amp(lien);
unescape_amp(query);
// décoder l'inutile (%2E par exemple) et coder espaces
- // XXXXXXXXXXXXXXXXX strcpybuff(lien,unescape_http(lien));
- //strcpybuff(lien,unescape_http_unharm(lien, (no_esc_utf)?0:1));
+ // Bad: strcpybuff(lien,unescape_http(lien));
+ // Bad: strcpybuff(lien,unescape_http_unharm(lien, (no_esc_utf)?0:1));
/* Never unescape high-chars (we don't know the encoding!!) */
strcpybuff(lien,unescape_http_unharm(catbuff,lien, 1)); /* note: '%' is still escaped */
escape_remove_control(lien);
- escape_spc_url(lien);
+ // ???? No! escape_spc_url(lien);
strcatbuff(lien,query); /* restore */
}
@@ -2752,6 +2752,7 @@ int htsparse(htsmoduleStruct* str, htsmoduleStructExtended* stre) {
if (!in_media) { // In media (such as real audio): don't patch
/* Never escape high-chars (we don't know the encoding!!) */
escape_uri_utf(tempo);
+
//if (!no_esc_utf)
// escape_uri(tempo); // escape with %xx
//else {