1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +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 : '')