Skip to content

Commit

Permalink
Script tag missing nonce value (#5)
Browse files Browse the repository at this point in the history
Otherwise results in CSP error.
  • Loading branch information
DuncanFairley authored and crazy-max committed Aug 15, 2019
1 parent c5e5bb3 commit 679e02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/login-servers-enhanced.php
Expand Up @@ -73,7 +73,7 @@ private function getTrServer()
}
$html .= '</select>';

$html .= '<script type="text/javascript">';
$html .= '<script type="text/javascript" ' . nonce() . '>';
$html .= 'function switchServer() { ';
$html .= 'var selectServer = document.getElementsByName("auth[server]")[0]; ';
$html .= 'var driver = selectServer.options[selectServer.selectedIndex].getAttribute("driver"); ';
Expand Down

0 comments on commit 679e02a

Please sign in to comment.