(bug 44761) Fix sanitization for alt text

Change-Id: I3638ab8c471b80f06a55f81cad3e346238a1b6d6
This commit is contained in:
csteipp 2013-02-07 13:26:00 -08:00
parent 301f82d125
commit 37fae79806

View file

@ -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']
)
);