Changeset 13080 for branches


Ignore:
Timestamp:
Feb 10, 2012, 2:55:15 PM (12 years ago)
Author:
plg
Message:

bug 559 fixed: avoid duplicate insert on tags when synchronizing metadata if
the IPTC keywords contains repeated separators like "tag1tag2".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/admin/include/functions_metadata.php

    r11748 r13080  
    5959    // official keywords separator is the comma
    6060    $iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
     61    $iptc['keywords'] = preg_replace('/,+/', ',', $iptc['keywords']);
    6162    $iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
    6263
Note: See TracChangeset for help on using the changeset viewer.