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