--- a/adminer/include/connect.inc.php
+++ b/adminer/include/connect.inc.php
@@ -49,7 +49,7 @@
 	}
 	page_footer("db");
 	if ($databases) {
-		echo "<script type='text/javascript' src='" . h(ME . "script=connect&token=$token") . "'></script>\n";
+		echo "<script type='text/javascript'>ajaxSetHtml('" . addcslashes(ME, "\\'/") . "script=connect');</script>\n";
 	}
 }