Re: [pmwiki-devel] Puts pmwiki in a loop
For what it's worth, I've done this several times myself costing my several hours debugging, thinking it was something in my code, when it was a PTV problem. It seems it also does this with something like test: {$:test} Which often comes up in a groupfooter or the like. But which will produce a loop when viewed on a page with no PTV's set. Cheers, Dan PS. Just in case you missed this report... On 4/28/07, Simon [EMAIL PROTECTED] wrote: Pm I think this would be worth fixing (this real life example cost me some time to track down on my work intranet wiki). (:Summary:A starting point for Developers to both learn and record ''how we do things around here'':) (:Summary:{$:Summary}:) '''[--{$:Summary}--]''' See http://pmwiki.org/wiki?n=Test/PTV-Summary http://pmwiki.org/wiki/PITS/00915 thanks Simon ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
Re: [pmwiki-devel] Puts pmwiki in a loop
On Tue, May 01, 2007 at 11:18:40AM -0400, The Editor wrote: For what it's worth, I've done this several times myself costing my several hours debugging, thinking it was something in my code, when it was a PTV problem. It seems it also does this with something like test: {$:test} I'm not sure of a good solution for this. The problem is that the {$var} markup rule replaces {$:test} with the value of the $:test ptv from the current page. In this case, that value is {$:test}... so, we replace {$:test} with itself and then do the markup rule all over again. The only solution I have so far involves hard-coding checks for specific PTV patterns as part of returning PTV values... and I'm not sure that's a good robust answer. Note that there are other cases that can cause a problem: alice: {$:bob} bob: {$:alice} Pm ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel