Skip to content

Commit

Permalink
Support AJAX for database names with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Vrana committed Feb 17, 2012
1 parent 70994ab commit 9fd2880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/static/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ function bodyClick(event, db, ns) {
if (/^a$/i.test(el.tagName) && !/:|#|&download=/i.test(el.getAttribute('href')) && /[&?]username=/.test(el.href) && !event.ctrlKey) {
var match = /&db=([^&]*)/.exec(el.href);
var match2 = /&ns=([^&]*)/.exec(el.href);
return !(db == (match ? match[1] : '') && ns == (match2 ? match2[1] : '') && ajaxSend(el.href));
return !(db == (match ? decodeURIComponent(match[1]) : '') && ns == (match2 ? decodeURIComponent(match2[1]) : '') && ajaxSend(el.href));
}
if (/^input$/i.test(el.tagName) && /image|submit/.test(el.type)) {
if (event.ctrlKey) {
Expand Down

0 comments on commit 9fd2880

Please sign in to comment.