dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CSP: Allow an option of disabling nonces
[lhc/web/wiklou.git]
/
includes
/
OutputPage.php
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
3b4b14a
..
948e1eb
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-4011,7
+4011,7
@@
class OutputPage extends ContextSource {
* @since 1.32
*/
public function getCSPNonce() {
- if ( !ContentSecurityPolicy::is
Enabl
ed( $this->getConfig() ) ) {
+ if ( !ContentSecurityPolicy::is
NonceRequir
ed( $this->getConfig() ) ) {
return false;
}
if ( $this->CSPNonce === null ) {