65 $basename = $pathInfo[
'basename'];
66 $parentPath = $pathInfo[
'dirname'];
69 $filename = str_replace(
'.',
'', $basename);
73 if ($parentPath ===
'') {
77 return "$parentPath/$filename";
90 return strtolower(pathinfo(
$filename, PATHINFO_EXTENSION));
104 throw new ilException(
"Filename must not be null to get sanitized!");
extractFileSuffix($filename)
Extracts the suffix from the given filename.
validateFilename($filename)
Validates that the filename is valid for further sanitizing.
__construct()
FilenameSanitizerImpl constructor.
const CLEAN_FILE_SUFFIX
This file suffix will be used to sanitize not whitelisted file names.
static getValidExtensions()
Valid extensions.