From c82db7653917f8580bcdc7a7cfdb81b084620666 Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Wed, 13 May 2009 15:37:29 +0000 Subject: [PATCH] strip backticks from math equations --- libs/plugins/function.math.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/plugins/function.math.php b/libs/plugins/function.math.php index 71672fea..bb78dac2 100644 --- a/libs/plugins/function.math.php +++ b/libs/plugins/function.math.php @@ -27,7 +27,8 @@ function smarty_function_math($params, &$smarty) return; } - $equation = $params['equation']; + // strip out backticks, not necessary for math + $equation = str_replace('`','',$params['equation']); // make sure parenthesis are balanced if (substr_count($equation,"(") != substr_count($equation,")")) {