fix call to protected method EGroupware\Api\Mail::clean_subject_for_filename() from context mail_integration

This commit is contained in:
Ralf Becker 2018-01-23 09:29:25 +01:00
parent 4b85df3465
commit a291fbeac6

View File

@ -6407,7 +6407,7 @@ class Mail
* @param string $filename * @param string $filename
* @return Cleaned filename, with problematic characters replaced with '_'. * @return Cleaned filename, with problematic characters replaced with '_'.
*/ */
protected static function clean_subject_for_filename($filename) static function clean_subject_for_filename($filename)
{ {
static $filter_pattern = '$[\f\n\t\v\\:*#?<>%"\|/\\\?]$'; static $filter_pattern = '$[\f\n\t\v\\:*#?<>%"\|/\\\?]$';
return preg_replace($filter_pattern, "_", trim($filename)); return preg_replace($filter_pattern, "_", trim($filename));