From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id eac6afba for ; Sun, 11 Sep 2016 18:57:22 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1bjEch-0007ea-MS; Mon, 12 Sep 2016 01:57:21 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1bjEce-0005gf-H3; Mon, 12 Sep 2016 01:57:16 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1bjEcd-0000gg-TH; Mon, 12 Sep 2016 01:57:15 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id b6facfa2; Mon, 12 Sep 2016 01:57:16 +0200 (CEST) Date: Mon, 12 Sep 2016 01:57:16 +0200 From: Ingo Schwarze To: "Anthony J. Bentley" Cc: tech@mdocml.bsd.lv Subject: Re: Double quotes in man.cgi search output Message-ID: <20160911235716.GB1204@athene.usta.de> References: <35268.1472543039@CATHET.us> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35268.1472543039@CATHET.us> User-Agent: Mutt/1.6.2 (2016-07-01) Hi Anthony, Anthony J. Bentley wrote on Tue, Aug 30, 2016 at 01:43:59AM -0600: > html_putchar() escapes double quotes incorrectly: the entity should be > ", not "e;. > > https://www.w3.org/TR/html5/syntax.html#named-character-references > > For example: > > http://man.openbsd.org/?query=Nd~%22&apropos=1 > > In Firefox, each "e; is rendered as: "e; > because Firefox believes what the author meant to write was "e; OK schwarze@ Ingo > Index: cgi.c > =================================================================== > RCS file: /cvs/src/usr.bin/mandoc/cgi.c,v > retrieving revision 1.77 > diff -u -p -r1.77 cgi.c > --- cgi.c 18 Aug 2016 00:44:37 -0000 1.77 > +++ cgi.c 30 Aug 2016 07:34:28 -0000 > @@ -136,7 +136,7 @@ html_putchar(char c) > > switch (c) { > case ('"'): > - printf(""e;"); > + printf("""); > break; > case ('&'): > printf("&"); -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv