]> git.joonet.de Git - adminer.git/commitdiff
Preventively escape name
authorJakub Vrana <jakub@vrana.cz>
Sun, 23 May 2021 09:38:51 +0000 (11:38 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 23 May 2021 09:38:51 +0000 (11:38 +0200)
adminer/include/editing.inc.php

index 5556b01472d926bef1237f707d317ded52e1922a..5e12d44bc7d238ad5306767a08a31ff9c4f4b928 100644 (file)
@@ -151,7 +151,7 @@ function set_adminer_settings($settings) {
 */
 function textarea($name, $value, $rows = 10, $cols = 80) {
        global $jush;
-       echo "<textarea name='$name' rows='$rows' cols='$cols' class='sqlarea jush-$jush' spellcheck='false' wrap='off'>";
+       echo "<textarea name='" . h($name) . "' rows='$rows' cols='$cols' class='sqlarea jush-$jush' spellcheck='false' wrap='off'>";
        if (is_array($value)) {
                foreach ($value as $val) { // not implode() to save memory
                        echo h($val[0]) . "\n\n\n"; // $val == array($query, $time, $elapsed)