Changeset 6316
- Timestamp:
- 02/13/10 16:30:45 (2 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki.pm
r6314 r6316 2147 2147 my $ntext = ''; 2148 2148 my $offset = 0; 2149 foreach my $bit ( split( /(%(?:START|END)SECTION(?:{.*?})?%)/, $_[0] ) ) { 2149 my @queue = split( /(%(?:START|END)SECTION(?:{.*?})?%)/, $_[0] ); 2150 while ( scalar(@queue) ) { 2151 my $bit = shift(@queue); 2150 2152 if ( $bit =~ /^%STARTSECTION(?:{(.*)})?%$/ ) { 2151 2153 require Foswiki::Attrs; … … 2153 2155 # SMELL: unchecked implicit untaint? 2154 2156 my $attrs = new Foswiki::Attrs($1); 2157 _extractHereDocuments(undef, $attrs, \@queue); 2155 2158 $attrs->{type} ||= 'section'; 2156 2159 $attrs->{name} = … … 2185 2188 # SMELL: unchecked implicit untaint? 2186 2189 my $attrs = new Foswiki::Attrs($1); 2190 _extractHereDocuments(undef, $attrs, \@queue); 2187 2191 $attrs->{type} ||= 'section'; 2188 2192 $attrs->{name} = $attrs->{_DEFAULT} || $attrs->{name} || ''; … … 2990 2994 $attrs->{$param} =~ s/%/%/g; 2991 2995 # Emit a warning to help wiki-app developers see what is wrong 2992 $attrs->{$param} .= $this->inlineAlert( 'alerts', 'here_not_found', $here ); 2996 if ($this) { 2997 $attrs->{$param} .= $this->inlineAlert( 'alerts', 'here_not_found', $here ); 2998 } 2999 else { 3000 Foswiki::Func::writeWarning("HERE-document end marker '$here' not found"); 3001 } 2993 3002 } 2994 3003 }
Note: See TracChangeset
for help on using the changeset viewer.
