Skip to content

Commit

Permalink
Item1830: When using embedded method, user is always redirected to th…
Browse files Browse the repository at this point in the history
…e validation page, because the ? is never removed (removed by the JS in strikeone)

git-svn-id: http://svn.foswiki.org/branches/Release01x00@4507 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Jul 18, 2009
1 parent 3448fe7 commit 5bb5b17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Validation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ sub isValidNonce {
my ( $cgis, $nonce ) = @_;
return 1 if ( $Foswiki::cfg{Validation}{Method} eq 'none' );
return 0 unless defined $nonce;
$nonce =~ s/^\?// if ( $Foswiki::cfg{Validation}{Method} ne 'strikeone' );
print STDERR "V: CHECK: $nonce\n" if TRACE;
my $actions = $cgis->param('VALID_ACTIONS');
return 0 unless ref($actions) eq 'HASH';
Expand Down

0 comments on commit 5bb5b17

Please sign in to comment.