From dac0a0e45694f09569f0a96a770b6ad709fa30a8 Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Wed, 30 Dec 2015 01:23:41 +0200 Subject: [PATCH] CONTRIB-5605: Quotation marks breaks the js-code in game Cryptex. --- cryptex/play.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptex/play.php b/cryptex/play.php index 1c601ef..0d88e11 100755 --- a/cryptex/play.php +++ b/cryptex/play.php @@ -325,11 +325,11 @@ width: 240pt; $question = game_show_query( $game, $q, "$i. ".$q->questiontext, $context); $question2 = strip_tags($question); // ADDED BY DP (AUG 2009) - fixes " breaking the Answer button for this question. - echo ''; + echo "'; if (($onlyshow == false) and ($showsolution == false)) { if (($game->param8 == 0) || ($game->param8 > $q->tries)) { $question .= '  '; + get_string( 'answer').'" onclick="OnCheck( '.$q->id.",msg{$q->id});\" />"; } } echo $question;