[pmwiki-users] MarkupExpressionsExtensions
Petko Yotov
5ko at free.fr
Tue Apr 17 03:24:15 CDT 2007
On Tuesday 17 April 2007 10:11, you wrote:
> > It is not safe because if the expression is not mathematically correct,
> > it will however try to execute it, and this will result in a Fatal Error.
> > Try with
> > {(math '12+(*')}
> > But you can tell your users not to write such incorrect expressions.
>
> Is there a way to avoid this by doing something like,
>
> onerr return '';
Only in PHP 5 AFAIK. Explore http://php.net/try (an advanced PHP topic).
More information about the pmwiki-users
mailing list