mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 18:11:52 +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) {
|
function build_http_url($server, $username, $password, $defaultServer, $defaultPort = null) {
|
||||||
if (!preg_match('~^(https?://)?([^:]*)(:\d+)?$~', rtrim($server, '/'), $matches)) {
|
if (!preg_match('~^(https?://)?([^:]*)(:\d+)?$~', rtrim($server, '/'), $matches)) {
|
||||||
$this->error = lang('Invalid server or credentials.');
|
auth_error(lang('Invalid server or credentials.'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user