Skip to content

Commit

Permalink
Item14033: skip POSTDATA when iterating ...
Browse files Browse the repository at this point in the history
... over all url params in existance. This is a flaw in CGI.pm that
makes it thru Foswiki: POSTDATA isn't an url param actually, it is posted data.
However CGI::param() doesn't distinguish these clearly. So we have to in
weird places like TOC and the PageCache.
  • Loading branch information
MichaelDaum committed Jul 5, 2016
1 parent a1bd899 commit 7d671f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Macros/TOC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ sub TOC {
next if ( $name eq 'topic' );
next if ( $name eq 'text' );
next if ( $name eq 'refresh' );
next if ( $name eq 'POSTDATA' );
push( @qparams, $name => scalar( $query->param($name) ) );
}

Expand Down

0 comments on commit 7d671f5

Please sign in to comment.