mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Elasticsearch: allow empty server name
This commit is contained in:
@@ -59,7 +59,7 @@ if (isset($_GET["elastic"])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function connect($server, $username, $password) {
|
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]/";
|
$this->_url = ($match[1] ? $match[1] : "http://") . "$username:$password@$match[2]/";
|
||||||
$return = $this->query('');
|
$return = $this->query('');
|
||||||
if ($return) {
|
if ($return) {
|
||||||
|
Reference in New Issue
Block a user