[pmwiki-devel] Bug in extendvars.php

Stirling Westrup sti at pooq.com
Mon Nov 6 13:50:38 CST 2006


The parser in extendvars.php is a bit buggy. It can't handle cases where there
are parentheses inside strings its handling. For example:

(:set subtotalwords='(=if regmatch "/<0*(?:7)>$/" "<04>") 0
"{$subtotalwords}"':)

doesn't work, because the first ')' is taken as the end of the if condition,
even though its inside a quoted regular expression.



More information about the pmwiki-devel mailing list