|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class InsecureFilenameSanitizerPreProcessor. More...
Inheritance diagram for ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor:
Collaboration diagram for ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor:Public Member Functions | |
| process (FileStream $stream, Metadata $metadata) | |
| This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
| process (FileStream $stream, Metadata $metadata) | |
| This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
Protected Member Functions | |
| checkPath (string $path) | |
| getRejectionMessage () | |
| getOKMessage () | |
Private Member Functions | |
| isFileAZip (Metadata $metadata) | |
Class InsecureFilenameSanitizerPreProcessor.
PreProcessor which checks for file with potentially dangerous names
Definition at line 32 of file AbstractRecursiveZipPreProcessor.php.
|
abstractprotected |
| string | $path | to a file |
Reimplemented in ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor, and ILIAS\FileUpload\Processor\InsecureFilenameSanitizerPreProcessor.
Referenced by ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\process().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor, and ILIAS\FileUpload\Processor\InsecureFilenameSanitizerPreProcessor.
Referenced by ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\process().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor, and ILIAS\FileUpload\Processor\InsecureFilenameSanitizerPreProcessor.
Referenced by ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\process().
Here is the caller graph for this function:
|
private |
Definition at line 72 of file AbstractRecursiveZipPreProcessor.php.
Referenced by ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\process().
Here is the caller graph for this function:| ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor::process | ( | FileStream | $stream, |
| Metadata | $metadata | ||
| ) |
This method gets invoked by the file upload service to process the file with the help of the processor.
If the return value is REJECTED, no further invocations of processors are done for the rejected file.
If the processor fails or returns an unexpected value, the file gets automatically rejected because the file could be dangerous to ILIAS.
| FileStream | $stream | The stream of the file. |
| Metadata | $metadata | The meta data of the uploaded file. |
Implements ILIAS\FileUpload\Processor\PreProcessor.
Reimplemented in ilFileServicesPreProcessor.
Definition at line 45 of file AbstractRecursiveZipPreProcessor.php.
References ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\checkPath(), ILIAS\FileUpload\DTO\Metadata\getFilename(), ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\getOKMessage(), ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\getRejectionMessage(), ILIAS\FileUpload\Processor\AbstractRecursiveZipPreProcessor\isFileAZip(), ILIAS\FileUpload\DTO\ProcessingStatus\OK, ILIAS\FileUpload\DTO\ProcessingStatus\PENDING, and ILIAS\FileUpload\DTO\ProcessingStatus\REJECTED.
Here is the call graph for this function: