mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Elasticsearch: Support HTTPS by inputting https://server (bug #446)
This commit is contained in:
@@ -59,7 +59,8 @@ if (isset($_GET["elastic"])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function connect($server, $username, $password) {
|
function connect($server, $username, $password) {
|
||||||
$this->_url = "http://$username:$password@$server/";
|
preg_match('~^(https?://)?(.+)~', $server, $match);
|
||||||
|
$this->_url = ($match[1] ? $match[1] : "http://") . "$username:$password@$match[2]/";
|
||||||
$return = $this->query('');
|
$return = $this->query('');
|
||||||
if ($return) {
|
if ($return) {
|
||||||
$this->server_info = $return['version']['number'];
|
$this->server_info = $return['version']['number'];
|
||||||
|
@@ -7,6 +7,7 @@ MySQL: Support spatial indexes
|
|||||||
PostgreSQL: Export
|
PostgreSQL: Export
|
||||||
PostgreSQL: Don't treat partial indexes as unique
|
PostgreSQL: Don't treat partial indexes as unique
|
||||||
MS SQL: Support pdo_dblib
|
MS SQL: Support pdo_dblib
|
||||||
|
Elasticsearch: Support HTTPS by inputting https://server
|
||||||
|
|
||||||
Adminer 4.2.5 (released 2016-06-01):
|
Adminer 4.2.5 (released 2016-06-01):
|
||||||
Fix remote execution in SQLite query
|
Fix remote execution in SQLite query
|
||||||
|
Reference in New Issue
Block a user