[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#357171: marked as done (www.debian.org: people.names contains invalid characters inside name attributes of anchors)



Your message dated Sat, 16 Apr 2011 22:56:14 -0400
with message-id <4DAA56CE.3030506@tilapin.org>
and subject line Yes, we care about Tidy
has caused the Debian Bug report #357171,
regarding www.debian.org: people.names contains invalid characters inside name attributes of anchors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
357171: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357171
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: www.debian.org
Severity: normal
Tags: patch


Tidy is not happy with the name attributes used in people.$lang.html.

Name attributes cannot begin with numbers and cannot contain several
characters.

As I did not find any reference to the anchors, I'd suggest to change
the name attributes to something valid. The aplied Patch fpr people.pl
deletes whitespaces and replaces other characters by Underscores.
In the begining a "MAINT_" is added to have no numbers or underscores
there.

I used tr because it is faster than other substituting.


Jutta


-- System Information:
Debian Release: 3.1
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
--- people.pl.orig	2006-03-15 23:45:45.049695336 +0100
+++ people.pl	2006-03-16 01:52:56.375432896 +0100
@@ -60,14 +60,20 @@
 	   my $userid = $People{$names}{email};
 	   $userid =~ s/@.*//;
 	   if (!$ppl_ref{lc($userid)}) {
-	      print "<a name=\"$userid\"></a>";
+	      my $linkname = $userid;
+	      $linkname = "MAINT_" . $linkname;
+	      print "<a name=\"$linkname\"></a>";
 	      $ppl_ref{lc($userid)} = 1;
 	   }
         }
 	if ($ppl_ref{lc($lastname)}) {
            print "$lastname";
 	} else {
- 	   print "<a name=\"$lastname\">$lastname</a>";
+	      my $linkname = $lastname;
+	      $linkname =~ tr/ //d;
+	      $linkname =~ tr{/'+&\;#///}{_};
+	      $linkname = "MAINT_" . $linkname;
+ 	   print "<a name=\"$linkname\">$lastname</a>";
            $ppl_ref{lc($lastname)} = 1;
 	}
 	if ($lastname ne "Wookey") {

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Jutta,

Well, five years and one month after your bug report, we are actually
trying to get rid of these errors in order to spot “real” ones, glad I
could use your patch, thanks.

Regards

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJNqlbGAAoJELgqIXr9/gnyRcIP/2LlC+u2vwwhRPh37n4DuLv1
4UI0tRjlMxmR4pvwp6NvuKU+b+y6Uk/SwsC+QZONAGebYZCJWSHf8BiJOoYjy/1n
09sIy73CqRhZtkaHsldGFvhBK6zeffV4ljTeoI0LMyp6igm/DcQ/0oftjXHgJR7F
fCpTLIAuX1LHcdL40UxI9PFX1rQhzkhX4AV0svruwf5+LCU2qIz0z7vOyqaX/9J7
NJWfMIc1lLPxwe2o+89qnKv/PGwHk12A9YNrVU+Tt6kpxvDsIxcb7nyGZ9bOSqPT
jeWsZbIMxfOPGevD4CmzmLDJt227urca4vS12ynuRyoLdgibPHLV3/SvQLTqMXGU
e5nfP5PUaZZagForSATz5Rr+bUGIDJs6w6cfPwK3XDofBpJdk/a/YYmQVtIVIVel
QMgU91Ao2VZPt87VJHrIAG+Ab0XxP94E4WtnQRpfW2F30sW9NyW9qZb9hp+wGqLF
MNLTH6Gwxoq2djJ5QQJq8AbiFw14yoFbNZqf2m/yF81fwpLLM8JSvNNqjFy5ojtS
V7d8mob5jhYH1wq1/08XvG9NKA78ePIkT63owEIQraMmwXGQ+YrWO6XsuONJ0EpQ
yCE4/Ebxcax34uvx98cFUxGSBnlXetQoErHPcvdhPpE8oyc70mtLNrOAnBaBcRWw
XFOdwuLGEkoitzkwlOYm
=CDnF
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: