mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
bug:2845
use of \ to escape the comma "a, b\, 1" will give Array ( [0] => a [1] => b, 1 ) whatever the number of \ git-svn-id: http://piwigo.org/svn/trunk@20741 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
d6abd25b6b
commit
1246fd7922
1 changed files with 2 additions and 2 deletions
|
@ -1977,10 +1977,10 @@ SELECT *
|
|||
if (isset($params['tags']) and !empty($params['tags']))
|
||||
{
|
||||
$tag_ids = array();
|
||||
$tag_names = explode(',', $params['tags']);
|
||||
$tag_names = preg_split('~(?<!\\\),~', $params['tags']);
|
||||
foreach ($tag_names as $tag_name)
|
||||
{
|
||||
$tag_id = tag_id_from_tag_name($tag_name);
|
||||
$tag_id = tag_id_from_tag_name(preg_replace('#\\\\*,#', ',', $tag_name));
|
||||
array_push($tag_ids, $tag_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue