[smarty-php commit] r3139 - strip backticks from math equations

6 views
Skip to first unread message

codesite...@google.com

unread,
May 13, 2009, 12:14:17 PM5/13/09
to smart...@googlegroups.com
Author: monte.ohrt
Date: Wed May 13 08:37:29 2009
New Revision: 3139

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,")")) {

Reply all
Reply to author
Forward
0 new messages