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:
@@ -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 : '')
|
||||
|
Reference in New Issue
Block a user