mirror of
https://github.com/vrana/adminer.git
synced 2026-07-13 19:23:23 +02:00
Disable redirections in HTTP based drivers
This commit is contained in:
@@ -14,7 +14,9 @@ if (isset($_GET["clickhouse"])) {
|
||||
'method' => 'POST',
|
||||
'content' => $this->isQuerySelectLike($query) ? "$query FORMAT JSONCompact" : $query,
|
||||
'header' => 'Content-type: application/x-www-form-urlencoded',
|
||||
'ignore_errors' => 1, // available since PHP 5.2.10
|
||||
'ignore_errors' => 1,
|
||||
'follow_location' => 0,
|
||||
'max_redirects' => 0,
|
||||
))));
|
||||
|
||||
if ($file === false) {
|
||||
|
||||
Reference in New Issue
Block a user