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 - 2006-04-29 - SamHasler
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.