Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SQLite: Ignore server, username and password

  • Loading branch information...
commit ef81b5c1b2b4b37a43cf9559d4729ca88d1a6786 1 parent 849f925
@vrana authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  adminer/include/auth.inc.php
  2. +3 −1 adminer/static/editing.js
View
2  adminer/include/auth.inc.php
@@ -21,7 +21,7 @@
$driver = $auth["driver"];
$server = $auth["server"];
$username = $auth["username"];
- $password = $auth["password"];
+ $password = (string) $auth["password"];
$db = $auth["db"];
set_password($driver, $server, $username, $password);
$_SESSION["db"][$driver][$server][$username][$db] = true;
View
4 adminer/static/editing.js
@@ -66,7 +66,9 @@ function typePassword(el, disable) {
function loginDriver(driver) {
var trs = parentTag(driver, 'table').rows;
for (var i=1; i < trs.length - 1; i++) {
- alterClass(trs[i], 'hidden', /sqlite/.test(driver.value));
+ var disabled = /sqlite/.test(driver.value);
+ alterClass(trs[i], 'hidden', disabled);
+ trs[i].getElementsByTagName('input')[0].disabled = disabled;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.