Skip to content

Commit

Permalink
MDL-65409 files: Allow location header
Browse files Browse the repository at this point in the history
Allow incorrect capitals in location header response.
  • Loading branch information
Damyon Wiese authored and Mihail Geshoski committed Jul 12, 2019
1 parent f7e1084 commit 27b67f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/converter/googledrive/classes/converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function start_document_conversion(\core_files\conversion $conversion) {
$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));
}
}
Expand Down

0 comments on commit 27b67f6

Please sign in to comment.