Skip to content

Commit

Permalink
Item13125: Another call to param
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Dec 16, 2014
1 parent 2fd6767 commit bb7d7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Validation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ sub validate {

my $tmpl = $session->templates->readTemplate('validate');

if ( $query->param('response') ) {
if ( scalar $query->param('response') ) {
my $cacheUID = $query->param('foswikioriginalquery');
$query->delete('foswikioriginalquery');
my $url;
if ( $query->param('response') eq 'OK'
&& isValidNonce( $cgis, $query->param('validation_key') ) )
&& isValidNonce( $cgis, scalar $query->param('validation_key') ) )
{
if ( !$cacheUID ) {
$url = $session->getScriptUrl( 0, 'view', $web, $topic );
Expand Down

0 comments on commit bb7d7eb

Please sign in to comment.