Menu

Can't pass square brackets [] to plugin

Help
Jack Boyce
2004-03-08
2012-10-11
  • Jack Boyce

    Jack Boyce - 2004-03-08

    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

     
    • Reini Urban

      Reini Urban - 2004-04-10

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.