Skip to content

Commit

Permalink
Don't call procedures by AJAX (may create tables)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Feb 9, 2011
1 parent fa63eba commit 37ecc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/static/functions.js
Expand Up @@ -433,7 +433,7 @@ function bodyClick(event, db, ns) {
var match2 = /&ns=([^&]*)/.exec(el.href);
return !(db == (match ? match[1] : '') && ns == (match2 ? match2[1] : '') && ajaxMain(el.href, '', event));
}
if (/^input$/i.test(el.tagName) && (el.type == 'image' || (el.type == 'submit' && !/&(database|scheme|create|view|sql|user|dump)=/.test(location.href)))) {
if (/^input$/i.test(el.tagName) && (el.type == 'image' || (el.type == 'submit' && !/&(database|scheme|create|view|sql|user|dump|call)=/.test(location.href)))) {
return !ajaxForm(el.form, (el.name ? encodeURIComponent(el.name) + (el.type == 'image' ? '.x' : '') + '=1' : ''));
}
return true;
Expand Down

0 comments on commit 37ecc29

Please sign in to comment.