mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 08:14:21 +00:00
(bug 44761) Fix sanitization for alt text
Change-Id: I3638ab8c471b80f06a55f81cad3e346238a1b6d6
This commit is contained in:
parent
301f82d125
commit
37fae79806
|
@ -134,7 +134,7 @@ class RelatedArticles {
|
|||
foreach ( (array) $relatedArticlesUrls as $url ) {
|
||||
$relatedArticles[] =
|
||||
Html::rawElement( 'li', array( 'class' => htmlspecialchars( $url['class'] ) ),
|
||||
Html::rawElement( 'a', array( 'href' => htmlspecialchars( $url['href'] ) ),
|
||||
Html::element( 'a', array( 'href' => htmlspecialchars( $url['href'] ) ),
|
||||
$url['text']
|
||||
)
|
||||
);
|
||||
|
@ -169,7 +169,7 @@ class RelatedArticles {
|
|||
foreach ( (array) $relatedArticlesUrls as $url ) {
|
||||
$relatedArticles[] =
|
||||
Html::rawElement( 'li', array( 'class' => htmlspecialchars( $url['class'] ) ),
|
||||
Html::rawElement( 'a', array( 'href' => htmlspecialchars( $url['href'] ) ),
|
||||
Html::element( 'a', array( 'href' => htmlspecialchars( $url['href'] ) ),
|
||||
$url['text']
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue