#135 plugin arguments containing ''

closed
nobody
5
2012-10-11
2002-09-26
Michael van Dam
No

I recently noticed that the BackLinks feature was no
longer working. The text that is displayed is:

There are no backlinks for </em>.

The reason seems to be is that the BackLinks page
calls the Backlinks plugin like so:

<?plugin BackLinks exclude||='' include_self||=1
noheader||=0 page||='' info||='' ?>

It seems like the '' (two single-quotes) is first
transformed to italic (<em> </em>), corrupting the
plugin arguments before they are parsed.


Also, a question: does anybody know what is the ||
(double-bar) for in the above argument list?

Discussion

  • Logged In: YES
    user_id=604745

    Ooops, nevermind about the question at bottom. Found
    the answer in the source code.

     
  • Logged In: YES
    user_id=45814

    This doesn't seem to be a problem currently. At least I
    can't reproduce it.

    The arg||=value syntax sets default values for the plugin args.
    (The arg can be overriden by HTTP query args to the page.)
    (If you use just arg=value, then query args are ignored.)