Skip to content

Commit

Permalink
🐛 allow null from nonce
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Apr 23, 2021
1 parent 870ed75 commit ff39a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-security-headers",
"type": "kirby-plugin",
"version": "2.4.0",
"version": "2.4.1",
"license": "MIT",
"description": "Kirby 3 Plugin for easier Security Headers setup",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
],
'pageMethods' => [
'nonce' => function (string $key): string {
'nonce' => function (string $key): ?string {
return \Bnomei\SecurityHeaders::singleton()->getNonce($key);
},
'nonceAttr' => function (string $key): string {
Expand Down

0 comments on commit ff39a46

Please sign in to comment.