Merge pull request #1850 from bitExpert/fix/recursive_get
Fix for recursion problem with wrong http basic auth credentialspull/1856/head
commit
7687d189e3
|
@ -112,6 +112,7 @@ class RemoteFilesystem
|
||||||
|
|
||||||
$errorMessage = '';
|
$errorMessage = '';
|
||||||
$errorCode = 0;
|
$errorCode = 0;
|
||||||
|
$result = false;
|
||||||
set_error_handler(function ($code, $msg) use (&$errorMessage) {
|
set_error_handler(function ($code, $msg) use (&$errorMessage) {
|
||||||
if ($errorMessage) {
|
if ($errorMessage) {
|
||||||
$errorMessage .= "\n";
|
$errorMessage .= "\n";
|
||||||
|
@ -188,7 +189,7 @@ class RemoteFilesystem
|
||||||
if ($this->retry) {
|
if ($this->retry) {
|
||||||
$this->retry = false;
|
$this->retry = false;
|
||||||
|
|
||||||
return $this->get($this->originUrl, $this->fileUrl, $this->fileName, $this->progress);
|
return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false === $result) {
|
if (false === $result) {
|
||||||
|
|
Loading…
Reference in New Issue