]> git.joonet.de Git - adminer.git/commitdiff
Shorten queries saved from SQL command to URL (fix #917)
authorJakub Vrana <jakub@vrana.cz>
Mon, 17 Mar 2025 14:05:56 +0000 (15:05 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 17 Mar 2025 14:05:56 +0000 (15:05 +0100)
adminer/static/editing.js
changes.txt

index 5c46196608a2918e200a64494157e1e94c9b1b0b..ab895cf9775150306aaeef27194b5166a75d2cd5 100644 (file)
@@ -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 : '')
index bffdddd7afd4f0537ac491cea3a96a1c5c3898f6..fb49e5f92b329c9377e1ca002962073c495f8362 100644 (file)
@@ -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