aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--main.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 80f4968..60d8305 100644
--- 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!
@@ -7251,4 +7256,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.764 2003/02/24 16:27:34 ukai Exp $
+$Id: ChangeLog,v 1.765 2003/02/25 16:01:38 ukai Exp $
diff --git a/main.c b/main.c
index 5aec367..9a7582a 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.211 2003/02/18 15:43:25 ukai Exp $ */
+/* $Id: main.c,v 1.212 2003/02/25 16:01:41 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -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);