@@ 659-662 (lines=4) @@ | ||
656 | $dlen = filesize($dstname); |
|
657 | if ($dlen != $_SESSION['RF'][$this->classparams['var_prefix'].'size']) |
|
658 | $this->abort('file size mismatch'); |
|
659 | if ($this->appletparams['sendMD5Sum'] === 'true' ) { |
|
660 | if ($md5sums[$cnt] != md5_file($dstname)) |
|
661 | $this->abort('MD5 checksum mismatch'); |
|
662 | } |
|
663 | // remove zero sized files |
|
664 | if (($dlen > 0) || $this->classparams['allow_zerosized']) { |
|
665 | $dstfinal = $this->dstfinal($files_data['name'],$files_data['relativePath']); |
|
@@ 684-687 (lines=4) @@ | ||
681 | } |
|
682 | } else { |
|
683 | // Got a single file upload. Trivial. |
|
684 | if ($this->appletparams['sendMD5Sum'] === 'true' ) { |
|
685 | if ($md5sums[$cnt] != md5_file($tmpname)) |
|
686 | $this->abort('MD5 checksum mismatch'); |
|
687 | } |
|
688 | $dstfinal = $this->dstfinal($files_data['name'],$files_data['relativePath']); |
|
689 | if (!rename($tmpname, $dstfinal)) |
|
690 | $this->abort('rename IO error'); |