@@ 532-534 (lines=3) @@ | ||
529 | } |
|
530 | // we check for the session *after* handling possible error log |
|
531 | // because an error could have happened because the session-id is missing. |
|
532 | if (!isset($_SESSION['RF'][$this->classparams['var_prefix'].'size'])) { |
|
533 | $this->abort('Invalid session (in afterupload, POST, check of size)'); |
|
534 | } |
|
535 | if (!isset($_SESSION['RF'][$this->classparams['var_prefix'].'files'])) { |
|
536 | $this->abort('Invalid session (in afterupload, POST, check of files)'); |
|
537 | } |
|
@@ 535-537 (lines=3) @@ | ||
532 | if (!isset($_SESSION['RF'][$this->classparams['var_prefix'].'size'])) { |
|
533 | $this->abort('Invalid session (in afterupload, POST, check of size)'); |
|
534 | } |
|
535 | if (!isset($_SESSION['RF'][$this->classparams['var_prefix'].'files'])) { |
|
536 | $this->abort('Invalid session (in afterupload, POST, check of files)'); |
|
537 | } |
|
538 | $this->files = $_SESSION['RF'][$this->classparams['var_prefix'].'files']; |
|
539 | if (!is_array($this->files)) { |
|
540 | $this->abort('Invalid session (in afterupload, POST, is_array(files))'); |
|
@@ 657-658 (lines=2) @@ | ||
654 | // This is the last chunk. Check total lenght and |
|
655 | // rename it to it's final name. |
|
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'); |
|
@@ 730-732 (lines=3) @@ | ||
727 | } |
|
728 | if (isset($_GET['afterupload'])) { |
|
729 | $this->logDebug('page_start', 'afterupload is set'); |
|
730 | if (!isset($_SESSION['RF'][$this->classparams['var_prefix'].'files'])) { |
|
731 | $this->abort('Invalid session (in afterupload, GET, check of $_SESSION["RF"]): files array is not set'); |
|
732 | } |
|
733 | $this->files = $_SESSION['RF'][$this->classparams['var_prefix'].'files']; |
|
734 | if (!is_array($this->files)) { |
|
735 | $this->abort('Invalid session (in afterupload, GET, check of is_array(files)): files is not an array'); |