diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-25 16:01:38 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-02-25 16:01:38 +0000 |
commit | 4d529919d444baa6c9b752ca7263edbf524f5de0 (patch) | |
tree | dfbe0a3466fd5a48f8c84eb889456ee3c2c21438 /main.c | |
parent | [w3m-dev-en 00891] Re: w3m 0.4 has been released! (diff) | |
download | w3m-4d529919d444baa6c9b752ca7263edbf524f5de0.tar.gz w3m-4d529919d444baa6c9b752ca7263edbf524f5de0.zip |
[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 (limited to '')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |