Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Decode URL entities to avoid broken links
@ 2010-09-26 23:33 Florian Ragwitz
  2010-09-27 10:37 ` Julien Danjou
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Ragwitz @ 2010-09-26 23:33 UTC (permalink / raw)
  To: ding; +Cc: Florian Ragwitz

<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
---
 lisp/ChangeLog    |    5 +++++
 lisp/gnus-html.el |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 92cdd90..864c570 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-26  Florian Ragwitz  <rafl@debian.org>
+
+	* gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid
+	handing broken links to browse-url.
+
 2010-09-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 	* nndoc.el (nndoc-request-list): Return success always.
diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el
index 587c28e..4bac528 100644
--- a/lisp/gnus-html.el
+++ b/lisp/gnus-html.el
@@ -286,7 +286,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)
-- 
1.7.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Decode URL entities to avoid broken links
  2010-09-26 23:33 [PATCH] Decode URL entities to avoid broken links Florian Ragwitz
@ 2010-09-27 10:37 ` Julien Danjou
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Danjou @ 2010-09-27 10:37 UTC (permalink / raw)
  To: Florian Ragwitz; +Cc: ding

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

On Mon, Sep 27 2010, Florian Ragwitz wrote:

> <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

Applied, thanks.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-27 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-26 23:33 [PATCH] Decode URL entities to avoid broken links Florian Ragwitz
2010-09-27 10:37 ` Julien Danjou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).