mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Disallow scripts without nonce
This commit is contained in:
@@ -49,7 +49,7 @@ foreach (table_status('', true) as $table => $table_status) {
|
||||
|
||||
?>
|
||||
<div id="schema" style="height: <?php echo $top; ?>em;">
|
||||
<script>
|
||||
<script<?php echo nonce(); ?>>
|
||||
qs('#schema').onselectstart = function () { return false; };
|
||||
var tablePos = {<?php echo implode(",", $table_pos_js) . "\n"; ?>};
|
||||
var em = qs('#schema').offsetHeight / <?php echo $top; ?>;
|
||||
|
Reference in New Issue
Block a user