mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-15 18:29:27 +00:00
modify r40671, use Sanitizer::escapeHtmlAllowEntities instead to allow & and the like.
This commit is contained in:
parent
196385c1d4
commit
c69b88dab7
|
@ -70,7 +70,7 @@ class ImageMap {
|
|||
if ( wfIsBadImage( $imageTitle->getDBkey() , $parser->mTitle ) ) {
|
||||
return self::error( 'imagemap_bad_image' );
|
||||
}
|
||||
$imageHTML = $parser->makeImage( $imageTitle, htmlspecialchars($options) );
|
||||
$imageHTML = $parser->makeImage( $imageTitle, Sanitizer::escapeHtmlAllowEntities($options) );
|
||||
$parser->mOutput->addImage( $imageTitle->getDBkey() );
|
||||
|
||||
$domDoc = new DOMDocument();
|
||||
|
|
Loading…
Reference in a new issue