Changeset 13081 for trunk


Ignore:
Timestamp:
Feb 10, 2012, 2:57:11 PM (13 years ago)
Author:
plg
Message:

merge r13080 from branch 2.3 to trunk

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
  • trunk/admin/include/functions_metadata.php

    r12922 r13081  
    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.