mirror of
https://github.com/vrana/adminer.git
synced 2026-01-01 05:10:53 +01:00
Disable redirections in HTTP based drivers
This commit is contained in:
@@ -425,7 +425,9 @@ if (isset($_GET["simpledb"])) {
|
||||
$file = @file_get_contents((preg_match('~^https?://~', $host) ? $host : "http://$host"), false, stream_context_create(array('http' => array(
|
||||
'method' => 'POST', // may not fit in URL with GET
|
||||
'content' => $query,
|
||||
'ignore_errors' => 1, // available since PHP 5.2.10
|
||||
'ignore_errors' => 1,
|
||||
'follow_location' => 0,
|
||||
'max_redirects' => 0,
|
||||
))));
|
||||
if (!$file) {
|
||||
$connection->error = $php_errormsg;
|
||||
|
||||
Reference in New Issue
Block a user