[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: emacs-w3m does not properly URL-encode <FORM> GET requests.



In [emacs-w3m : No.12291] Dan Jacobson <jidanni@xxxxxxxxxxx> wrote:
> This FORM should encode the request portion,

>  <form action="http://maps.google.com.tw/maps";>

>   <p>務必確認 Be sure <input type="hidden"
>   name="q" value="http://jidanni.org/location/zaokeng.kmz";>
>   <input type="submit" value=
>   "燥坑圖 Zao Keng map">
>   能於您行動裝置兼
>   GPS 操作。 is operable in your GPS enabled
>   mobile device!</p>
>  </form>

> like in all other browsers. Unfortunately it does not!

Thanks for reporting this.  I've installed a fix in CVS.
The patch:
--- w3m.el~	2013-11-20 07:51:02.000000000 +0000
+++ w3m.el	2014-02-13 23:52:15.946786600 +0000
@@ -3359,7 +3359,7 @@
 	    (cond
 	     ((eq ch ?\n)		; newline
 	      "%0D%0A")
-	     ((string-match "[-a-zA-Z0-9_:/.]" (char-to-string ch)) ; xxx?
+	     ((string-match "[-a-zA-Z0-9_.]" (char-to-string ch)) ; xxx?
 	      (char-to-string ch))	; printable
 	     ((and (char-equal ch ?\x20); space
 		   encode-space)