diff options
-rw-r--r-- | admin/include/functions_metadata.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php index 7f9b516b0..2e75a0dd6 100644 --- a/admin/include/functions_metadata.php +++ b/admin/include/functions_metadata.php @@ -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( |