From 2cea2a74b4a683ac26a9ed0fb4023e0493e4c17e Mon Sep 17 00:00:00 2001 From: gbateson Date: Tue, 2 May 2006 05:18:01 +0000 Subject: [PATCH] fixed handling of square brackets in JCloze on older PHP sites. Micro-increment version to 2006050200 (v2.1.19) --- mod/hotpot/lib.php | 8 +++++--- mod/hotpot/version.php | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index bb6b0d8db4..bd24211564 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -1333,9 +1333,11 @@ class hotpot_xml_tree { '&' => '&', ); static $ILLEGAL_STRINGS = array( - "\r" => '', - "\n" => '<br />', - ']]>' => ']]>', + "\r\n" => '<br />', + "\r" => '<br />', + "\n" => '<br />', + '[' => '[', + ']' => ']' ); // extract the $tag from the $str(ing), if possible diff --git a/mod/hotpot/version.php b/mod/hotpot/version.php index 4fc509c18b..01536b46ef 100644 --- a/mod/hotpot/version.php +++ b/mod/hotpot/version.php @@ -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 -- 2.39.5