From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71944 Path: news.gmane.org!not-for-mail From: Florian Ragwitz Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Decode URL entities to avoid broken links Date: Mon, 27 Sep 2010 01:33:50 +0200 Message-ID: <1285544030-23102-1-git-send-email-rafl@debian.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1285544117 25788 80.91.229.12 (26 Sep 2010 23:35:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2010 23:35:17 +0000 (UTC) Cc: Florian Ragwitz To: ding@gnus.org Original-X-From: ding-owner+M20317@lists.math.uh.edu Mon Sep 27 01:35:15 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P00kP-0001TA-Fj for ding-account@gmane.org; Mon, 27 Sep 2010 01:35:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P00kE-0004RZ-7Q; Sun, 26 Sep 2010 18:34:58 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P00kB-0004RF-Ts for ding@lists.math.uh.edu; Sun, 26 Sep 2010 18:34:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P00k7-0002QW-8h for ding@lists.math.uh.edu; Sun, 26 Sep 2010 18:34:55 -0500 Original-Received: from kief.perldition.org ([78.47.20.161]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P00k6-0007S6-00 for ; Mon, 27 Sep 2010 01:34:50 +0200 Original-Received: from p4fd758ec.dip.t-dialin.net ([79.215.88.236] helo=tardis.home.perldition.org) by kief.perldition.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P00jp-0004bl-Oi; Mon, 27 Sep 2010 01:34:49 +0200 Original-Received: from rafl by tardis.home.perldition.org with local (Exim 4.72) (envelope-from ) id 1P00j8-000615-V1; Mon, 27 Sep 2010 01:33:51 +0200 X-Mailer: git-send-email 1.7.1 X-Spam_score: -3.8 X-Spam_score_int: -37 X-Spam_bar: --- X-Spam_report: Spam detection software, running on the system "kief.perldition.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: example shouldn't point to http://example.com/foo?moo=kooh&affe=tiger --- lisp/ChangeLog | 5 +++++ lisp/gnus-html.el | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) [...] Content analysis details: (-3.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam pr X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71944 Archived-At: example shouldn't point to http://example.com/foo?moo=kooh&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 + + * gnus-html.el (gnus-html-wash-tags): Decode URL entities to avoid + handing broken links to browse-url. + 2010-09-26 Lars Magne Ingebrigtsen * 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