From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1136798-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 90554138351 for <garchives@archives.gentoo.org>; Thu, 9 Jan 2020 07:35:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42206E083D; Thu, 9 Jan 2020 07:35:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1CEECE083D for <gentoo-commits@lists.gentoo.org>; Thu, 9 Jan 2020 07:35:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DFEE634DE8E for <gentoo-commits@lists.gentoo.org>; Thu, 9 Jan 2020 07:35:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C1A8D35 for <gentoo-commits@lists.gentoo.org>; Thu, 9 Jan 2020 07:34:58 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1578387182.200818b99d2f874ad9e885861704a53d29f4e619.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: devbook.xsl X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 200818b99d2f874ad9e885861704a53d29f4e619 X-VCS-Branch: master Date: Thu, 9 Jan 2020 07:34:58 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4e2a0e46-e6f3-4f34-93a0-1f6b913c86af X-Archives-Hash: bd49199c6b36b3f75a8557695ea4c64c commit: 200818b99d2f874ad9e885861704a53d29f4e619 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Jan 3 19:11:04 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Tue Jan 7 08:53:02 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=200818b9 devbook.xsl: ID attributes should contain only valid characters. Keep only characters that HTML 4 allows in ID attributes (but exclude the colon as well). Note that HTML 5 is more sloppy and would permit characters outside of the ASCII range, but these won't be valid in URI fragment identifiers (RFC 3986). Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> devbook.xsl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devbook.xsl b/devbook.xsl index 2a5dea2..9d3d5f0 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -280,7 +280,10 @@ <xsl:param name="data"/> <xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz--</xsl:variable> <xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ<xsl:text> </xsl:text>,</xsl:variable> - <xsl:value-of select="translate(normalize-space($data),$ucletters,$lcletters)"/> + <xsl:variable name="lcdata" select="translate(normalize-space($data), $ucletters, $lcletters)"/> + <!-- Delete anything but letters, digits, hyphen, dot, underscore --> + <xsl:variable name="allowed">abcdefghijklmnopqrstuvwxyz0123456789-._</xsl:variable> + <xsl:value-of select="translate($lcdata, translate($lcdata, $allowed, ''), '')"/> </xsl:template> <xsl:template match="uri">