[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: serious form submission bug:!CURRENT_URL!
From: "clemens fischer" <email@example.com>
Subject: [emacs-w3m:04633] Re: serious form submission bug: !CURRENT_URL!
Date: 4 Feb 2003 17:02:19 +0100
> > I don't know how to fix it so far, sorry. However, I found the
> > string "!CURRENT_URL!" in the w3m (not emacs-w3m) source files.
> > Dones anyone know what is it?
> it seems to be an indicator of some sort, which is later removed from
> the URI as parsing goes along. grepping for it lists:
Thank you for your suggestion.
I fixed the CVS of emacs-w3m to show the bellow,
--- w3m-form.el.~1.103~ Wed Feb 5 11:12:13 2003
+++ w3m-form.el Wed Feb 5 10:18:12 2003
@@ -1268,6 +1268,9 @@
(if (string-match "\\?" w3m-current-url)
(substring w3m-current-url 0 (match-beginning 0))
+ ;; "!CURRENT_URL!" is magic string of w3m.
+ (when (string-match "!CURRENT_URL!$" url)
+ (setq url (substring url 0 (match-beginning 0))))
(cond ((and (not (string= url orig-url))
(string-match "^https://" orig-url)
(string-match "^http://" url)
Hideyuki SHIRAI (mailto:firstname.lastname@example.org)