From: Jakub Vrana Date: Mon, 17 Mar 2025 14:05:56 +0000 (+0100) Subject: Shorten queries saved from SQL command to URL (fix #917) X-Git-Tag: v5.0.6~1 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b7258d2e957b4c50cbb47c32599d7a5ddf203a7c;p=adminer.git Shorten queries saved from SQL command to URL (fix #917) --- diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 5c461966..ab895cf9 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -665,7 +665,7 @@ function indexesAddColumn(prefix) { * @param string */ function sqlSubmit(form, root) { - if (encodeURIComponent(form['query'].value).length < 2e3) { + if (encodeURIComponent(form['query'].value).length < 500) { form.action = root + '&sql=' + encodeURIComponent(form['query'].value) + (form['limit'].value ? '&limit=' + +form['limit'].value : '') diff --git a/changes.txt b/changes.txt index bffdddd7..fb49e5f9 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,7 @@ Adminer dev: Align numbers right (bug #912) Display comment in title of field Remember export setting at SQL command +Shorten queries saved from SQL command to URL (bug #917) SQL textarea: Open help on Ctrl+click Security: Disallow writing temporary files to symlinks (bug SF-855) MariaDB: Display MariaDB instead of MySQL