Modified:
trunk/libs/plugins/function.math.php
Log:
strip backticks from math equations
Modified: trunk/libs/plugins/function.math.php
==============================================================================
--- trunk/libs/plugins/function.math.php (original)
+++ trunk/libs/plugins/function.math.php Wed May 13 08:37:29 2009
@@ -27,7 +27,8 @@
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,")")) {