Changeset 1485


Ignore:
Timestamp:
Jul 21, 2006, 1:49:05 AM (18 years ago)
Author:
rvelices
Message:

bug 481: Incorrect tag generation in listing.xml for accentuated letters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/tools/create_listing_file.php

    r1228 r1485  
    137137  $value = str_replace(chr(0x00), ' ', $value);
    138138
    139   return htmlentities($value);
     139  return $value;
    140140}
    141141
     
    155155      if ( preg_match('/(\d{4})(\d{2})(\d{2})/', $value, $matches))
    156156      {
    157         $iptc[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3];
    158       }
    159     }
    160   }
    161 
    162   if (isset($iptc['keywords']))
    163   {
    164     // official keywords separator is the comma
    165     $iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
    166     $iptc['keywords'] = preg_replace('/^,+|,+$/', '', $iptc['keywords']);
    167   }
     157        $value = $matches[1].'-'.$matches[2].'-'.$matches[3];
     158      }
     159    }
     160    if ($pwg_key == 'keywords')
     161    {
     162      // official keywords separator is the comma
     163      $value = preg_replace('/[.;]/', ',', $value);
     164      $value = preg_replace('/^,+|,+$/', '', $value);
     165    }
     166    $iptc[$pwg_key] = htmlentities($value);
     167  }
     168
    168169  $iptc['keywords'] = implode(
    169170               ',',
Note: See TracChangeset for help on using the changeset viewer.