[pmwiki-devel] Bug or feature: (:pagelist..:) with include can cause redirections

Peter Bowers pbowers at pobox.com
Wed Aug 20 07:21:58 CDT 2008


You could solve this by doing a search/replace in the pagelist
template using an MX such as sed (within WikiSh) so that, for
instance, open parentheses before ":redirect:)" were converted to
their HTML entities or something like that.  That will prevent the
redirect from being activated.

If you're interested I can put an example script out there.

Adam, is this one of the examples you put out there?  I know you were
working on putting WikiSh in pagelist templates...

-Peter

On Wed, Aug 20, 2008 at 11:16 AM, Christian Ridderström
<christian.ridderstrom at gmail.com> wrote:
> Hi,
>
> I upgraded a wiki and suddendly encountered a new bug or feature, here's the
> background.
>
> * I'm using a custom pagelist format that includes the first paragraph of
>  the page.
> * One of the pages contained a (:redirect...:) on the first line
> * When I upgraded the wiki, the resulting pagelist now caused a redirect.
>
> The redirection happens because my pagelist format uses include. So my
> questions are as follows:
>
> * Should the default for (:include:) be that (:redirect:) is
>  interpreted?
>
> * Is there a way to disable (:include:) from parsing (:redirect:)?
>  (This would be useful with e.g. pagelists...)
>
> regards,
> /Christian
>
> PS. I solved my problem by placing a dummy paragraph before the
> (:redirect:)-directive, thus preventing the actual directive from being
> included and parsed.
>
> --
> Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>
>



More information about the pmwiki-devel mailing list