commit 78c6b1dc268ad513818c4492765c2fc980f6fb32
parent 7ed109bd58d4e7b3c26bc87df58914fe168ff853
Author: ukai <ukai>
Date: Tue, 25 Feb 2003 16:01:38 +0000
[w3m-dev 03781] Debian Bug report logs - #181897: w3m submits query urls with "extra"
* main.c (_followForm): remove tailling '?'
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-26 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03781] Debian Bug report logs - #181897: w3m submits query urls with "extra"
+ * main.c (_followForm): remove tailling '?'
+
2003-02-25 Hironori SAKAMOTO <h-saka@lsi.nec.co.jp>
* [w3m-dev-en 00891] Re: w3m 0.4 has been released!
diff --git a/main.c b/main.c
@@ -3295,6 +3295,8 @@ _followForm(int submit)
}
if (fi->parent->method == FORM_METHOD_GET) {
+ if ((p = strchr(tmp2->ptr, '?')) != NULL)
+ Strshrink(tmp2, (tmp2->ptr + tmp2->length) - p);
Strcat_charp(tmp2, "?");
Strcat(tmp2, tmp);
loadLink(tmp2->ptr, a->target, NULL, NULL);