Skip to content

Commit

Permalink
Set "$contentRange" default to empty string if header key not found. …
Browse files Browse the repository at this point in the history
…Passing "null" to the second argument of preg_match is deprecated.
  • Loading branch information
RTippin authored and pionl committed Mar 25, 2024
1 parent e192223 commit cfbc429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/ContentRangeUploadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(Request $request, $file, $config)
{
parent::__construct($request, $file, $config);

$contentRange = $this->request->header(self::CONTENT_RANGE_INDEX);
$contentRange = $this->request->header(self::CONTENT_RANGE_INDEX, '');

$this->tryToParseContentRange($contentRange);
}
Expand Down

0 comments on commit cfbc429

Please sign in to comment.