Skip to content

Commit

Permalink
merge r13080 from branch 2.3 to trunk
Browse files Browse the repository at this point in the history
bug 559 fixed: avoid duplicate insert on tags when synchronizing metadata if
the IPTC keywords contains repeated separators like "tag1,,tag2".



git-svn-id: http://piwigo.org/svn/trunk@13081 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 10, 2012
1 parent 9edfe9b commit 1a56352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/include/functions_metadata.php
Expand Up @@ -58,6 +58,7 @@ function get_sync_iptc_data($file)
{
// official keywords separator is the comma
$iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
$iptc['keywords'] = preg_replace('/,+/', ',', $iptc['keywords']);
$iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);

$iptc['keywords'] = implode(
Expand Down

0 comments on commit 1a56352

Please sign in to comment.