ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FilenameSanitizerPreProcessor.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
20 {
21 
26  {
27  $metadata->setFilename(Util::normalizeRelativePath($metadata->getFilename()));
28 
29  return new ProcessingStatus(ProcessingStatus::OK, 'Filename changed');
30  }
31 }
static normalizeRelativePath($path)
Normalize relative directories in a path.
Definition: Util.php:96
$metadata['__DYNAMIC:1__']
$stream
PHP stream implementation.
getFilename()
The filename supplied by the browser.
Definition: Metadata.php:73
setFilename($filename)
Overwrite the current filename.
Definition: Metadata.php:87
Interface FileStream.
Definition: FileStream.php:20