diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index ff17886c..df66b485 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -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; }