]> git.mjollnir.org Git - moodle.git/commitdiff
fixed handling of square brackets in JCloze on older PHP sites. Micro-increment versi...
authorgbateson <gbateson>
Tue, 2 May 2006 05:18:01 +0000 (05:18 +0000)
committergbateson <gbateson>
Tue, 2 May 2006 05:18:01 +0000 (05:18 +0000)
mod/hotpot/lib.php
mod/hotpot/version.php

index bb6b0d8db4a6c65f29773a2bae60fe9b4c60b074..bd24211564b392a10c617bafae7b7efeeec119bc 100644 (file)
@@ -1333,9 +1333,11 @@ class hotpot_xml_tree {
                        '&amp;'  => '&',
                );
                static $ILLEGAL_STRINGS = array(
-                       "\r"  => '',
-                       "\n"  => '&lt;br /&gt;',
-                       ']]>' => '&#93;&#93;&#62;',
+                       "\r\n"  => '&lt;br /&gt;',
+                       "\r"    => '&lt;br /&gt;',
+                       "\n"    => '&lt;br /&gt;',
+                       '['     => '&#91;',
+                       ']'     => '&#93;'
                );
 
                // extract the $tag from the $str(ing), if possible
index 4fc509c18b90ccc501728373fb4ce50de04b732a..01536b46efdf004144803e3d68b76d60bfa8b44b 100644 (file)
@@ -3,8 +3,8 @@
 ///  Code fragment to define the version of hotpot
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
-$module->version  = 2006042803;  // release date of this version (see note below)
-$module->release  = 'v2.1.18';    // human-friendly version name (used in mod/hotpot/lib.php)
+$module->version  = 2006050200;  // release date of this version (see note below)
+$module->release  = 'v2.1.19';    // human-friendly version name (used in mod/hotpot/lib.php)
 $module->cron     = 0;           // period for cron to check this module (secs)
 // interpretation of YYYYMMDDXY version numbers
 //     YYYY : year