]> git.joonet.de Git - adminer.git/commitdiff
JSON: Remove unnecessary escape
authorJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 10:15:03 +0000 (11:15 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 18 Mar 2025 10:15:03 +0000 (11:15 +0100)
adminer/include/html.inc.php

index ba8d1835ec5421a0384c8fbbbb68c593eeb8709f..ca728e441446a9dbfd546feb7f14f517d0daf563 100644 (file)
@@ -249,7 +249,7 @@ function input($field, $value, $function, $autofocus = false) {
        $name = h(bracket_escape($field["field"]));
        echo "<td class='function'>";
        if (is_array($value) && !$function) {
-               $value = json_encode($value, 128); // 128 - JSON_PRETTY_PRINT available since PHP 5.4
+               $value = json_encode($value, 128 | 64 | 256); // 128 - JSON_PRETTY_PRINT, 64 - JSON_UNESCAPED_SLASHES, 256 - JSON_UNESCAPED_UNICODE available since PHP 5.4
                $function = "json";
        }
        $reset = (JUSH == "mssql" && $field["auto_increment"]);