MDL-65409 files: Allow location header

Allow incorrect capitals in location header response.
This commit is contained in:
Damyon Wiese 2019-05-29 09:16:26 +08:00 committed by Mihail Geshoski
parent f7e108438f
commit 27b67f6b5a

View File

@ -124,7 +124,7 @@ class converter implements \core_files\converter_interface {
$uploadurl;
// Google returns a location header with the location for the upload.
foreach ($headers as $header) {
if (strpos($header, 'Location:') === 0) {
if (stripos($header, 'Location:') === 0) {
$uploadurl = trim(substr($header, strpos($header, ':') + 1));
}
}