From 004c11085ca30094914d7a071b7d3f5003c69c9b Mon Sep 17 00:00:00 2001 From: Crawford Currie Date: Tue, 30 Jun 2015 18:30:09 +0100 Subject: [PATCH] Item13490: break infinite loop --- core/lib/Foswiki/Tables/Reader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Foswiki/Tables/Reader.pm b/core/lib/Foswiki/Tables/Reader.pm index f45122f446..6c76f67346 100644 --- a/core/lib/Foswiki/Tables/Reader.pm +++ b/core/lib/Foswiki/Tables/Reader.pm @@ -166,7 +166,7 @@ sub early_line { # There may be several on the line (yuck) my $ok = 0; while ( $line =~ /%(TABLE|$this->{macro})(\{.*?\})?%/s ) { - $ok ||= $this->_early_line( $line, $1 ); + $ok = 1 if $this->_early_line( $line, $1 ); } push( @{ $this->{waiting} }, $line ) if $ok && length($line); return $ok;