ILIAS  release_8 Revision v8.24
ilFileServicesFilenameSanitizer Class Reference

Class ilFileServicesFilenameSanitizer. More...

+ Inheritance diagram for ilFileServicesFilenameSanitizer:
+ Collaboration diagram for ilFileServicesFilenameSanitizer:

Public Member Functions

 __construct (ilFileServicesSettings $settings)
 
- Public Member Functions inherited from ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizerImpl
 __construct (array $whitelist)
 FilenameSanitizerImpl constructor. More...
 
 isClean (string $filename)
 Checks if the filename is prefixed with a valid whitelisted ending. More...
 
 sanitize (string $filename)
 @inheritDoc More...
 
 isClean (string $filename)
 Checks if the filename is prefixed with a valid whitelisted ending. More...
 
 sanitize (string $filename)
 Validates the file ending, with the filesystem whitelist provided by ILIAS. More...
 

Additional Inherited Members

- Data Fields inherited from ILIAS\Filesystem\Security\Sanitizing\FilenameSanitizer
const CLEAN_FILE_SUFFIX = 'sec'
 This file suffix will be used to sanitize not whitelisted file names. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilFileServicesFilenameSanitizer::__construct ( ilFileServicesSettings  $settings)

Definition at line 28 of file class.ilFileServicesFilenameSanitizer.php.

29 {
30 parent::__construct(array_diff($settings->getWhiteListedSuffixes(), $settings->getBlackListedSuffixes()));
31 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200

References ILIAS\LTI\ToolProvider\$settings, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: