From 87fc82f88ed48009c82fcb030e742d1e5fbe75f0 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Mon, 28 Oct 2024 20:57:18 +0100 Subject: [PATCH] Fix printing error message while validating server URL --- adminer/include/auth.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }