From a3a940c7fb56525c10af00e00ac79874ea1fdfeb Mon Sep 17 00:00:00 2001 From: gbateson Date: Mon, 8 Oct 2007 06:39:23 +0000 Subject: [PATCH] added escaping of quotes in TimesUp message, so that apostrophes do not cause Javascript errors --- mod/hotpot/template/v6.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/template/v6.php b/mod/hotpot/template/v6.php index 5c3f8a1b85c..8ca95b3ce31 100644 --- a/mod/hotpot/template/v6.php +++ b/mod/hotpot/template/v6.php @@ -652,7 +652,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default { return $this->parent->xml_value('hotpot-config-file,'.$this->parent->quiztype.',remaining-words'); } function v6_expand_TimesUp() { - return $this->parent->xml_value('hotpot-config-file,global,times-up'); + return $this->js_safe($this->parent->xml_value('hotpot-config-file,global,times-up')); } // nav bar