protected function trimFilename($name, $type, $index, $content_range)
    {
        $name = trim(basename(stripslashes($name)), ".\x00..\x20");

        if (! $name) {
            $name = str_replace('.', '-', microtime(true));
        }

        return $name;
    }
protected function trimFilename($name, $type, $index, $content_range)
    {
        $name = trim(basename(stripslashes($name)), ".\x00..\x20");

        if (! $name) {
            $name = str_replace('.', '-', microtime(true));
        }

        return $name;
    }
protected function trimFilename ( $ name , $ type , $ index , $ content_range ) { $ name = trim ( basename ( stripslashes ( $ name ) ) , ".\x00..\x20" ) ; if ( ! $ name ) { $ name = str_replace ( '.' , '-' , microtime ( true ) ) ; } return $ name ; }
Remove harmful characters from filename
@param  string  $name
@param  string  $type
@param  integer $index
@param  array   $content_range
@return string
Remove harmful characters from filename