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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-04-29 - SamHasler
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.