Disallow scripts without nonce

This commit is contained in:
Jakub Vrana
2018-01-13 22:17:00 +01:00
parent e23da5da0e
commit 80d030f51a
9 changed files with 32 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ class AdminerLoginSqlite {
function loginForm() {
?>
<script>
<script<?php echo nonce(); ?>>
addEventListener('load', function () {
var driver = qs('name="auth[driver]"');
if (isTag(driver, 'select')) {