1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Shorten queries saved from SQL command to URL (fix #917)

This commit is contained in:
Jakub Vrana
2025-03-17 15:05:56 +01:00
parent c51d9919fe
commit b7258d2e95
2 changed files with 2 additions and 1 deletions

View 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 : '')

View 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