I've noticed that when text is passed as an argument to a Wiki plugin, anything in square brackets gets eaten. So for example:
<?plugin HelloWorld salutation="Hello [there] world" ?>
just displays "Hello world".
I know extremely little PHP so this may be a stupid question, but does anyone know the cause of this? More importantly, is there a workaround that I can use in my plugin, or am I stuck with not being able to use square brackets in plugin arguments?
Thanks,
Jack
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running PhpWiki 1.3.7 on the Sourceforge site and have written a couple of plugins to embed my Java applet in Wiki pages (try it out at http://jugglinglab.sourceforge.net/wiki/index.php/SandBox\).
I've noticed that when text is passed as an argument to a Wiki plugin, anything in square brackets gets eaten. So for example:
<?plugin HelloWorld salutation="Hello [there] world" ?>
just displays "Hello world".
I know extremely little PHP so this may be a stupid question, but does anyone know the cause of this? More importantly, is there a workaround that I can use in my plugin, or am I stuck with not being able to use square brackets in plugin arguments?
Thanks,
Jack
They are eaten by the WikiPlugin::getArgs code.
I just fixed it for PhpWikiHighlight, but I have to think of how to fix that generally. If its possible at all.
please add a sf.net Bug for this.