We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2505c3a commit 514b5fcCopy full SHA for 514b5fc
Ajax/php/ubiquity/JsUtils.php
@@ -15,7 +15,7 @@ class JsUtils extends \Ajax\JsUtils {
15
*/
16
protected function _open_script($src = '') {
17
$str = '<script ';
18
- if (isset($this->params['nonce']) && ContentSecurityManager::isStarted()) {
+ if (($this->params['nonce']??false) && ContentSecurityManager::isStarted()) {
19
$nonce = ContentSecurityManager::getNonce('jsUtils');
20
$str .= ' nonce="' . $nonce . '" ';
21
}
0 commit comments