From: Ævar Arnfjörð Bjarmason Date: Sun, 26 Mar 2006 03:22:10 +0000 (+0000) Subject: * Reverting changes made in revision 1.33 by gwicke which was supposed to fix X-Git-Tag: 1.6.0~127 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=cb0dfa4219f9181673b8877df9f0bc7f56c505c6;p=lhc%2Fweb%2Fwiklou.git * 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 --- 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 ); }