mirror of
https://github.com/vrana/adminer.git
synced 2025-08-30 17:50:00 +02:00
Fix printing error message while validating server URL
This commit is contained in:
@@ -71,7 +71,7 @@ if (!function_exists('is_server_host_valid')) {
|
||||
*/
|
||||
function build_http_url($server, $username, $password, $defaultServer, $defaultPort = null) {
|
||||
if (!preg_match('~^(https?://)?([^:]*)(:\d+)?$~', rtrim($server, '/'), $matches)) {
|
||||
$this->error = lang('Invalid server or credentials.');
|
||||
auth_error(lang('Invalid server or credentials.'));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user