mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Don't send login form by AJAX
This commit is contained in:
@@ -385,7 +385,7 @@ function bodyClick(event, db) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (/^input$/i.test(el.tagName) && /submit|image/.test(el.type) && !/&(database|scheme|create|view|sql|user)=/.test(location.href)) {
|
||||
if (/^input$/i.test(el.tagName) && /submit|image/.test(el.type) && !/&(database|scheme|create|view|sql|user)=/.test(location.href) && /[&?]username=/.test(location.href)) {
|
||||
return !ajaxForm(el.form, (el.name ? encodeURIComponent(el.name) + '=1' : ''));
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user