mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 08:50:07 +00:00
Merge "Test for numeric extends
attribute"
This commit is contained in:
commit
dfb0ccdac6
|
@ -198,7 +198,7 @@ class Cite {
|
|||
* @return StatusValue
|
||||
*/
|
||||
private function validateRef( $text, $name, $group, $follow, $dir, $extends ) : StatusValue {
|
||||
if ( ctype_digit( $name ) || ctype_digit( $follow ) ) {
|
||||
if ( ctype_digit( $name ) || ctype_digit( $follow ) || ctype_digit( $extends ) ) {
|
||||
// Numeric names mess up the resulting id's, potentially producing
|
||||
// duplicate id's in the XHTML. The Right Thing To Do
|
||||
// would be to mangle them, but it's not really high-priority
|
||||
|
|
Loading…
Reference in a new issue