コード例 #1
0
ファイル: lib-common.php プロジェクト: NewRoute/glfusion
/**
* Sanitize a filename.
*
* @param    string  $filename   the filename to clean up
* @param    boolean $allow_dots whether to allow dots in the filename or not
* @return   string              sanitized filename
* @note     This function is pretty strict in what it allows. Meant to be used
*           for files to be included where part of the filename is dynamic.
*
*/
function COM_sanitizeFilename($filename, $allow_dots = false)
{
    $filter = new sanitizer();
    return $filter->sanitizeFilename($filename, $allow_dots);
}