freebsd-ports/www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm
Daichi GOTO bf6b384902 update www/p5-CGI-Kwiki: 0.18 -> 0.18_1
- add RUN_DEPENDS with p5-Locale-Maketext
  - add EXTRA_PATCHES with PERL_LEVEL < 5.00601

PR:		58043
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net> (maintainer)
2003-10-15 07:50:35 +00:00

12 lines
476 B
Perl

--- lib/CGI/Kwiki/Template.pm.orig Fri Aug 29 09:30:19 2003
+++ lib/CGI/Kwiki/Template.pm Wed Oct 15 11:37:23 2003
@@ -71,7 +71,8 @@
my ($self, $text, $v) = @_;
my $re;
$text = $self->loc($text);
- $re = qr/\[((?:(?>[^\[\]]+)|(??{$re}))*)\]/;
+ #$re = qr/\[((?:(?>[^\[\]]+)|(??{$re}))*)\]/;
+ $re = qr/\[((?:(?>[^\[\]]+)|\[[^\[\]]*\])*)\]/;
$text =~ s{$re}
{<a href="[% script %]?$1">$1</a>}g;
$text =~ s{\[%\s+(\w+)\s+%\]\n?}