Skip to content

Commit cfbc429

Browse files
RTippinpionl
authored andcommitted
Set "$contentRange" default to empty string if header key not found. Passing "null" to the second argument of preg_match is deprecated.
1 parent e192223 commit cfbc429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Handler/ContentRangeUploadHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct(Request $request, $file, $config)
6767
{
6868
parent::__construct($request, $file, $config);
6969

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

7272
$this->tryToParseContentRange($contentRange);
7373
}

0 commit comments

Comments
 (0)