Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 514b5fc

Browse files
committed
Update JsUtils.php
1 parent 2505c3a commit 514b5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Ajax/php/ubiquity/JsUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class JsUtils extends \Ajax\JsUtils {
1515
*/
1616
protected function _open_script($src = '') {
1717
$str = '<script ';
18-
if (isset($this->params['nonce']) && ContentSecurityManager::isStarted()) {
18+
if (($this->params['nonce']??false) && ContentSecurityManager::isStarted()) {
1919
$nonce = ContentSecurityManager::getNonce('jsUtils');
2020
$str .= ' nonce="' . $nonce . '" ';
2121
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /