modify r40671, use Sanitizer::escapeHtmlAllowEntities instead to allow & and the like.

This commit is contained in:
Alex Z. 2008-09-09 20:14:14 +00:00
parent 196385c1d4
commit c69b88dab7

View file

@ -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();