mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-65409 files: Allow location header
Allow incorrect capitals in location header response.
This commit is contained in:
parent
f7e108438f
commit
27b67f6b5a
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user