Decode URL entities to avoid broken links
authorFlorian Ragwitz <rafl@debian.org>
Sun, 26 Sep 2010 23:33:50 +0000 (01:33 +0200)
committerJulien Danjou <julien@danjou.info>
Tue, 5 Oct 2010 08:31:39 +0000 (10:31 +0200)
<a href="http://example.com/foo?moo=kooh&affe=tiger">example</a>
shouldn't point to http://example.com/foo?moo=kooh&amp;affe=tiger

Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/gnus-html.el

index b472335..713b81a 100644 (file)
@@ -3,6 +3,9 @@
        * sieve-manage.el (sieve-manage-default-stream): Make default stream
        customizable.
 
+       * gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid
+       handing broken links to browse-url.
+
 2010-10-05  Julien Danjou  <julien@danjou.info>
 
        * gnus-util.el (gnus-emacs-completing-read)
index 3ae3766..bfbdc41 100644 (file)
@@ -282,7 +282,7 @@ Use ALT-TEXT for the image string."
          (setq url (match-string 1 parameters))
           (gnus-message 8 "gnus-html-wash-tags: fetching link URL %s" url)
          (gnus-article-add-button start end
-                                  'browse-url url
+                                  'browse-url (mm-url-decode-entities-string url)
                                   url)
          (let ((overlay (gnus-make-overlay start end)))
            (gnus-overlay-put overlay 'evaporate t)