55 $this->as_ascii = $this->
settings->isASCIIConvertionEnabled();
60 $filename = $this->sanitizer->sanitize(basename($filename_with_extension));
61 if ($this->as_ascii) {
72 foreach ($this->umlaut_mapping as $src => $tgt) {
73 $filename = str_replace($src, $tgt, $filename);
82 '/[:\x5c\/\*\?\"<>\|]/',
91 if ($this->
settings->isByPassAllowedForCurrentUser()) {
94 return parent::isBlockedExtension($extension);
Class ilFileServicesPolicy.
prepareFileNameForConsumer(string $filename_with_extension)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilFileServicesSettings $settings)
ilFileServicesSettings $settings
isBlockedExtension(string $extension)
Class ilFileServicesFilenameSanitizer.
__construct(Container $dic, ilPlugin $plugin)
ilFileServicesFilenameSanitizer $sanitizer
Class WhiteAndBlacklistedFileNamePolicy.