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

Re: Redirection through tinyurl to a URL with pound sign does not resolve correctly



Hey no worries!  I likely will not be able to play with this soon anyhow so please don't feel any pressure from me.  I am just thankful this extension even exists.

-bg

On Jan 5, 2017 1:35 AM, "Katsumi Yamaoka" <yamaoka@xxxxxxx> wrote:
In [emacs-w3m : No.12621]
        On Wed, 04 Jan 2017 19:36:27 -0800, Brent Goodrick wrote:
> Thanks Katsumi!
> I'll give that a try.

Sorry, I was half asleep.  The bug should always happen for such
a redirection case.  Upgrading w3m does not help.  I realized
emacs-w3m needs to be fixed, so give me time.

A quick hack is below, though it accesses the site doubly. :(

--8<---------------cut here---------------start------------->8---
--- w3m.el~     2016-09-21 03:45:26.000000000 +0000
+++ w3m.el      2017-01-05 09:33:25.610556700 +0000
@@ -9736,6 +9736,7 @@
            (setq url (replace-match "about://dtree/" nil nil url)
                  orig url))
          ;; Split body and fragments.
+         (setq url (or (w3m-real-url url) url))
          (w3m-string-match-url-components url)
          (and (match-beginning 8)
               (setq name (match-string 9 url)
--8<---------------cut here---------------end--------------->8---