@@ 88-92 (lines=5) @@ | ||
85 | continue; |
|
86 | } |
|
87 | // Ignore if the file is not successfully uploaded, and check uploaded file |
|
88 | if(!is_uploaded_file($image_obj['tmp_name']) || !checkUploadedFile($image_obj['tmp_name'])) |
|
89 | { |
|
90 | unset($obj->{$vars->name}); |
|
91 | continue; |
|
92 | } |
|
93 | // Ignore if the file is not an image |
|
94 | if(!preg_match("/\.(jpg|jpeg|gif|png)$/i", $image_obj['name'])) |
|
95 | { |
@@ 442-446 (lines=5) @@ | ||
439 | continue; |
|
440 | } |
|
441 | // Ignore if the file is not successfully uploaded |
|
442 | if(!is_uploaded_file($image_obj['tmp_name']) || !checkUploadedFile($image_obj['tmp_name'])) |
|
443 | { |
|
444 | unset($obj->{$vars->name}); |
|
445 | continue; |
|
446 | } |
|
447 | // Ignore if the file is not an image |
|
448 | if(!preg_match("/\.(jpg|jpeg|gif|png)$/i", $image_obj['name'])) |
|
449 | { |