From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#25600: 26.0.50; shr doesn't heed the IDNA non-obfuscation rules Date: Wed, 01 Feb 2017 16:03:32 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1485961514 29854 195.159.176.226 (1 Feb 2017 15:05:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 15:05:14 +0000 (UTC) To: 25600@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 16:05:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYwT8-0007ZH-60 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 16:05:10 +0100 Original-Received: from localhost ([::1]:51422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYwTD-0006qF-Fm for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 10:05:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYwT4-0006mq-L1 for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:05:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYwT0-0007uk-My for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:05:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYwT0-0007uf-Jg for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYwT0-0003od-8R for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2017 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25600 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148596145414606 (code B ref -1); Wed, 01 Feb 2017 15:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Feb 2017 15:04:14 +0000 Original-Received: from localhost ([127.0.0.1]:53556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYwS9-0003nQ-4B for submit@debbugs.gnu.org; Wed, 01 Feb 2017 10:04:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYwS7-0003n3-0u for submit@debbugs.gnu.org; Wed, 01 Feb 2017 10:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYwRw-0007ch-BV for submit@debbugs.gnu.org; Wed, 01 Feb 2017 10:04:01 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYwRw-0007cb-8l for submit@debbugs.gnu.org; Wed, 01 Feb 2017 10:03:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYwRq-0006Ax-Fp for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:03:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYwRn-0007Zl-3I for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:03:50 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYwRm-0007YR-T9 for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 10:03:47 -0500 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cYwRY-0001l7-LV for bug-gnu-emacs@gnu.org; Wed, 01 Feb 2017 16:03:38 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128865 Archived-At: --=-=-= Content-Type: text/plain If you view the following HTML, shr will (on mouseover etc) display the domain as something that looks like "www.microsoft.com", when it's really an IDNA domain with a cyrillic letter in the middle. I thought eww/shr had fixed this everywhere, but apparently it's just in the eww header line. shr should also apply the same rules (for mixing latin and non-latin characters) and display the link as "www.xn--mirsft-yqfbx.com" or something. Perhaps with a warning, even. --=-=-= Content-Type: text/html; charset=utf-8 Content-Disposition: inline; filename=idna.html Content-Transfer-Encoding: quoted-printable EDIT:

It doesn't 'disable' as such, but renders the '= punycode' in full, so a fake 'http://www.mi= =D1=81r=D0=BEs=D0=BEft.com' is rendered as instead 'http:= //www.xn--mirsft-yqfbx.com'.

For comparison, here'= ;s fake on top of real (not in monospace since it destroys the illusion):http://www.mi=D1=81r=D0=BEs=D0=BEft.com

http://www.micr= osoft.com --=-=-= Content-Type: text/plain In GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2017-01-30 built on stories Repository revision: ab96c8509736a7ed622916ad2749ff356e520d02 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.6 (jessie) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-=--