Don't use deprecated Sanitizer::escapeId()
Change-Id: I96354291594f1fcb8a263318e93fd1c059aa006d
This commit is contained in:
parent
cc99dda2e4
commit
eb145c8ce4
|
@ -268,14 +268,15 @@ class VectorTemplate extends BaseTemplate {
|
||||||
$msg = $name;
|
$msg = $name;
|
||||||
}
|
}
|
||||||
$msgObj = wfMessage( $msg );
|
$msgObj = wfMessage( $msg );
|
||||||
$labelId = Sanitizer::escapeId( "p-$name-label" );
|
$labelId = Sanitizer::escapeIdForAttribute( "p-$name-label" );
|
||||||
?>
|
?>
|
||||||
<div class="portal" role="navigation" id='<?php
|
<div class="portal" role="navigation" id="<?php
|
||||||
echo Sanitizer::escapeId( "p-$name" )
|
echo htmlspecialchars( Sanitizer::escapeIdForAttribute( "p-$name" ) )
|
||||||
?>'<?php
|
?>"<?php
|
||||||
echo Linker::tooltip( 'p-' . $name )
|
echo Linker::tooltip( 'p-' . $name )
|
||||||
?> aria-labelledby='<?php echo $labelId ?>'>
|
?> aria-labelledby="<?php echo htmlspecialchars( $labelId ) ?>">
|
||||||
<h3<?php $this->html( 'userlangattributes' ) ?> id='<?php echo $labelId ?>'><?php
|
<h3<?php $this->html( 'userlangattributes' ) ?> id="<?php echo htmlspecialchars( $labelId )
|
||||||
|
?>"><?php
|
||||||
echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg );
|
echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg );
|
||||||
?></h3>
|
?></h3>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
Loading…
Reference in New Issue