mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Disallow using password-less databases
This commit is contained in:
@@ -240,6 +240,11 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
|
||||
}
|
||||
|
||||
function connect() {
|
||||
global $adminer;
|
||||
list(, , $password) = $adminer->credentials();
|
||||
if ($password != "") {
|
||||
return lang('Database does not support password.');
|
||||
}
|
||||
return new Min_DB;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user