Index: trunk/phase3/includes/Sanitizer.php |
— | — | @@ -622,6 +622,9 @@ |
623 | 623 | ); |
624 | 624 | |
625 | 625 | $id = urlencode( Sanitizer::decodeCharReferences( strtr( $id, ' ', '_' ) ) ); |
| 626 | + # *must* start with letters (a-zA-Z), so prefix with something |
| 627 | + # informative |
| 628 | + $id = preg_replace('/^([0-9])/','iHaveToStartWithALetter-\\1', $id); |
626 | 629 | |
627 | 630 | return str_replace( array_keys( $replace ), array_values( $replace ), $id ); |
628 | 631 | } |