From 1246fd7922db87202a781a40e2a4aa77b4d20583 Mon Sep 17 00:00:00 2001 From: flop25 Date: Wed, 13 Feb 2013 18:12:10 +0000 Subject: 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 --- include/ws_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ws_functions.inc.php') diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 50123fc9a..7f0952ec3 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -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('~(?