ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
Class InsecureFilenameSanitizerPreProcessor. More...
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... | |
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 |
Referenced by ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\process().
|
abstractprotected |
Referenced by ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\process().
|
abstractprotected |
Referenced by ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\process().
|
private |
Definition at line 72 of file AbstractRecursiveZipPreProcessor.php.
Referenced by ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\process().
ILIAS\MetaData\Repository\Validation\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\MetaData\Repository\Validation\Processor\PreProcessor.
Definition at line 45 of file AbstractRecursiveZipPreProcessor.php.
References ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\checkPath(), ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\getOKMessage(), ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\getRejectionMessage(), ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor\isFileAZip(), ILIAS\FileUpload\DTO\ProcessingStatus\OK, ILIAS\FileUpload\DTO\ProcessingStatus\PENDING, and ILIAS\FileUpload\DTO\ProcessingStatus\REJECTED.