From 4ad4e498d7c36a63848056c4e910c41bb68ea200 Mon Sep 17 00:00:00 2001 From: gbateson Date: Mon, 8 Oct 2007 06:53:55 +0000 Subject: [PATCH] added escaping of quotes in TimesUp message, so that apostrophes do not cause Javascript errors --- mod/hotpot/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 3c95a9297bc..095ede50691 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -1536,7 +1536,7 @@ class hotpot_xml_quiz extends hotpot_xml_tree { return $this->xml_value("hotpot-config-file,$this->quiztype,remaining-words"); } function v6_expand_TimesUp() { - return $this->xml_value('hotpot-config-file,global,times-up'); + return $this->js_safe($this->xml_value('hotpot-config-file,global,times-up')); } // nav bar