Skip to content

Commit

Permalink
Item12888: no CGI session during unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Nov 25, 2014
1 parent 02bbf43 commit 6824204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SubscribePlugin/lib/Foswiki/Plugins/SubscribePlugin.pm
Expand Up @@ -220,6 +220,7 @@ sub _getNonce {
my $query = Foswiki::Func::getCgiQuery();
my $context = $query->url( -full => 1, -path => 1, -query => 1 ) . time();
my $cgis = $session->getCGISession();
return '' unless $cgis;
if ( Foswiki::Validation->can('generateValidationKey') ) {
return Foswiki::Validation::generateValidationKey( $cgis, $context, 1 );
}
Expand Down

0 comments on commit 6824204

Please sign in to comment.