]> git.joonet.de Git - adminer.git/commitdiff
Don't call procedures by AJAX (may create tables)
authorJakub Vrana <jakub@vrana.cz>
Wed, 9 Feb 2011 14:31:20 +0000 (15:31 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 9 Feb 2011 14:31:20 +0000 (15:31 +0100)
adminer/static/functions.js

index aec7edfade3f9161a41777644929addea1e873d3..b494155a4bf8686a23ab6c9db168179571459ce6 100644 (file)
@@ -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;