diff --git a/extension.json b/extension.json index 457616c..b330c0c 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "RandomGameUnit", - "version": "2.7.0", + "version": "2.8.0", "author": [ "Aaron Wright", "David Pean", diff --git a/includes/RandomGameUnit.php b/includes/RandomGameUnit.php index 7695d73..de14bad 100644 --- a/includes/RandomGameUnit.php +++ b/includes/RandomGameUnit.php @@ -171,7 +171,7 @@ class RandomGameUnit { $poll_link = Title::makeTitle( $ns, $poll['title'] ); $output = '

' . wfMessage( 'game-unit-poll-title' )->escaped() . '

-
' . $poll_link->getText() . '
'; +
' . htmlspecialchars( $poll_link->getText(), ENT_QUOTES ) . '
'; if ( $poll['image'] ) { $poll_image_width = $wgRandomImageSize; @@ -193,7 +193,7 @@ class RandomGameUnit { foreach ( $poll['choices'] as $choice ) { $output .= ' ' . $choice['choice'] . + htmlspecialchars( $poll_link->getFullURL() ) . '\'" /> ' . htmlspecialchars( $choice['choice'], ENT_QUOTES ) . ''; } $output .= '
@@ -208,7 +208,7 @@ class RandomGameUnit { $quiz_title = SpecialPage::getTitleFor( 'QuizGameHome' ); $output = '

' . wfMessage( 'game-unit-quiz-title' )->escaped() . '

-
' . $quiz['text'] . '
'; +
' . htmlspecialchars( $quiz['text'], ENT_QUOTES ) . '
'; if ( $quiz['image'] ) { $quiz_image_width = $wgRandomImageSize; @@ -279,7 +279,7 @@ class RandomGameUnit { $output = '

' . wfMessage( 'game-unit-picturegame-title' )->escaped() . '

-
' . $title_text . '
+
' . htmlspecialchars( $title_text, ENT_QUOTES ) . '