From cb0dfa4219f9181673b8877df9f0bc7f56c505c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 26 Mar 2006 03:22:10 +0000 Subject: [PATCH] * Reverting changes made in revision 1.33 by gwicke which was supposed to fix the "Validating the contents of the id attribute" test case: - Doesn't validate HTML id attributes according to the spec - Creates a namespace clash where a user could specify two id's which would be merged into one by the software - Probably not worth the effort to "fix" this at all --- includes/Sanitizer.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index aa478eb6cb..45f7a49d5d 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -622,9 +622,6 @@ class Sanitizer { ); $id = urlencode( Sanitizer::decodeCharReferences( strtr( $id, ' ', '_' ) ) ); - # *must* start with letters (a-zA-Z), so prefix with something - # informative - $id = preg_replace('/^([0-9])/','iHaveToStartWithALetter-\\1', $id); return str_replace( array_keys( $replace ), array_values( $replace ), $id ); } -- 2.20.1