Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
// sanitize filename by replacing international characters with underscores
function sanitize_filename($str)
{
// allow only alfanumeric characters, hyphen, [, ], dot and apostrophe in file names
// the rest will be replaced
return preg_replace("/[^\w|\.|'|\-|\[|\]]/","_",$str);
}
1 to 5 of 5