Sanitizes a filename.

Uses sanitized.filename filter hook.


  • Full name: sanitize_filename
  • Defined in: cms/core/Shared/Helpers/core.php

Parameters

Parameter Type Description
$filename string Name of file to sanitize.
$beautify bool Whether to beautify the sanitized filename.

Return Value

string

Sanitized filename for use.