library/Theme/FileUploads.php
public function santitizeFileNames($file)
    {
        $path           = pathinfo($file['name']);
        $new_filename   = preg_replace('/.' . $path['extension'] . '$/', '', $file['name']);
        $file['name']   = $this->localLetterSanitize(sanitize_title($new_filename)) . '.' . $path['extension'];
        return $file;
    }
public function santitizeFileNames($file)
    {
        $path           = pathinfo($file['name']);
        $new_filename   = preg_replace('/.' . $path['extension'] . '$/', '', $file['name']);
        $file['name']   = $this->localLetterSanitize(sanitize_title($new_filename)) . '.' . $path['extension'];
        return $file;
    }
public function santitizeFileNames ( $ file ) { $ path = pathinfo ( $ file [ 'name' ] ) ; $ new_filename = preg_replace ( '/.' . $ path [ 'extension' ] . '$/' , '' , $ file [ 'name' ] ) ; $ file [ 'name' ] = $ this -> localLetterSanitize ( sanitize_title ( $ new_filename ) ) . '.' . $ path [ 'extension' ] ; return $ file ; }
Santitize file names
@param  array $file with parameters for uploaded file
@return string      Array with file specifications
Santitize file names