added escaping of quotes in TimesUp message, so that apostrophes do not cause Javascr...
authorgbateson <gbateson>
Mon, 8 Oct 2007 06:45:27 +0000 (06:45 +0000)
committergbateson <gbateson>
Mon, 8 Oct 2007 06:45:27 +0000 (06:45 +0000)
mod/hotpot/template/v6.php

index c0f1f5cbc8d3e86dee0182db48328e5f7a22b3f4..183b6f287bbddcfd728d5eb7ac1bfff83c292f44 100644 (file)
@@ -654,7 +654,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