[-] BO : tag saving does not crash with a bad line ending anymore #PSCFV-5663
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ class TagCore extends ObjectModel
|
||||
return false;
|
||||
|
||||
if (!is_array($tag_list))
|
||||
$tag_list = array_unique(array_map('trim', preg_split('#\\'.$separator.'#', $tag_list, null, PREG_SPLIT_NO_EMPTY)));
|
||||
$tag_list = array_filter(array_unique(array_map('trim', preg_split('#\\'.$separator.'#', $tag_list, null, PREG_SPLIT_NO_EMPTY))));
|
||||
|
||||
$list = array();
|
||||
foreach ($tag_list as $tag)
|
||||
|
||||
Reference in New Issue
Block a user