We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Bug: The META parent tag should use a minimal match

In the handleMetaTags file in TWiki.pm, the current implementation for %META{"parent"}% uses a maximal match. I think this should be minimal.

The code would look like:

$text =~ s/%META{\s*"parent"\s*(.*?)}%/&renderParent( $theWeb, $theTopic, $meta, $1 )/ge;

Test case

Any attempt to use META parent where another variable is evaluated after it on the same line will exhibit the problem.

Environment

TWiki version: 1Feb2003
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- AllenBierbaum - 11 Feb 2003

Follow up

This seems logical, and to lack any side-effects. So I'm converting this to a patch proposal.

-- CrawfordCurrie - 20 Jul 2004

Fix record

Topic revision: r4 - 29 Apr 2006 - 15:21:48 - SamHasler
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback