]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - force the creation of the csp nonce value if it is used
authorDylan William Hardison <dylan@hardison.net>
Wed, 10 Apr 2019 19:01:58 +0000 (15:01 -0400)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2019 19:01:58 +0000 (15:01 -0400)
Bugzilla/App/Plugin/Glue.pm

index 3f6dc2ad6ee8362b3915aafdcdfc7fc761825469..45c9721c745ca834cd5ad5a94b3c3c712dd5c546 100644 (file)
@@ -186,6 +186,8 @@ sub register {
         $stash->{Bugzilla_csp} = Bugzilla::CGI::ContentSecurityPolicy->new(%params);
       }
 
+      # force the creation of the value, and thus the nonce (if it is used)
+      $stash->{Bugzilla_csp}->value;
       return $stash->{Bugzilla_csp};
     }
   );