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