Skip to content

Commit 2ebd99c

Browse files
committed
Merge pull request blueimp#1820 from IngenuityEngine/master
Changed split() to preg_split() in upload.class.php
2 parents 33054ac + 05d87a0 commit 2ebd99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/php/upload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ public function post($print_response = true) {
665665
// Parse the Content-Range header, which has the following form:
666666
// Content-Range: bytes 0-524287/2000000
667667
$content_range = isset($_SERVER['HTTP_CONTENT_RANGE']) ?
668-
split('[^0-9]+', $_SERVER['HTTP_CONTENT_RANGE']) : null;
668+
preg_split("/[^0-9]+/", $_SERVER['HTTP_CONTENT_RANGE']) : null;
669669
$size = $content_range ? $content_range[3] : null;
670670
$info = array();
671671
if ($upload && is_array($upload['tmp_name'])) {

0 commit comments

Comments
 (0)