mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Disable redirections in HTTP based drivers
This commit is contained in:
@@ -21,6 +21,8 @@ if (isset($_GET["elastic"])) {
|
||||
'content' => $content === null ? $content : json_encode($content),
|
||||
'header' => 'Content-Type: application/json',
|
||||
'ignore_errors' => 1, // available since PHP 5.2.10
|
||||
'follow_location' => 0,
|
||||
'max_redirects' => 0,
|
||||
))));
|
||||
if (!$file) {
|
||||
$this->error = $php_errormsg;
|
||||
|
Reference in New Issue
Block a user