diff --git a/adminer/drivers/elastic.inc.php b/adminer/drivers/elastic.inc.php index c6398d48..3ab5c43d 100644 --- a/adminer/drivers/elastic.inc.php +++ b/adminer/drivers/elastic.inc.php @@ -59,7 +59,7 @@ if (isset($_GET["elastic"])) { } function connect($server, $username, $password) { - preg_match('~^(https?://)?(.+)~', $server, $match); + preg_match('~^(https?://)?(.*)~', $server, $match); $this->_url = ($match[1] ? $match[1] : "http://") . "$username:$password@$match[2]/"; $return = $this->query(''); if ($return) {