mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
porting PHRAS-1589 to 4.1
This commit is contained in:
@@ -168,11 +168,11 @@ class ExportController extends Controller
|
||||
$request->request->get('businessfields')
|
||||
);
|
||||
|
||||
$separator = preg_split('//', ' ;,', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
|
||||
$separator = '/\\' . implode('|\\', $separator) . '/';
|
||||
|
||||
$list['export_name'] = sprintf("%s.zip", $download->getExportName());
|
||||
$list['email'] = implode(';', preg_split($separator, $request->request->get("destmail", "")));
|
||||
|
||||
$separator = '/\ |\;|\,/';
|
||||
// add PREG_SPLIT_NO_EMPTY to only return non-empty values
|
||||
$list['email'] = implode(';', preg_split($separator, $request->request->get("destmail", ""), -1, PREG_SPLIT_NO_EMPTY));
|
||||
|
||||
$destMails = [];
|
||||
//get destination mails
|
||||
|
Reference in New Issue
Block a user