From: pichetp Date: Sun, 6 Sep 2009 20:34:09 +0000 (+0000) Subject: MDL-19418 Correcting expression by escaping ~ so that it is interpreted as a charracter X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=86e8577599dd321984d3c4f9b80cf96966db2594;p=moodle.git MDL-19418 Correcting expression by escaping ~ so that it is interpreted as a charracter --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 35fa83b64c..8327bc8c14 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -1979,7 +1979,7 @@ function qtype_calculated_find_formula_errors($formula) { // Strip away empty space and lowercase it $formula = strtolower(str_replace(' ', '', $formula)); - $safeoperatorchar = '-+/*%>:^~:^\~