Ignore:
Timestamp:
Jan 12, 2007, 12:56:36 AM (17 years ago)
Author:
rvelices
Message:
  • bug 471: apostrophe lors de l'ajout d'un tag (different behavior depending on

magic_quotes_gpc)

  • metadata synchronization correction: iptc keywords were MySql escaped 2

times when synchronizing from site manager, but only once when synchronizing
one image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_reader_local.php

    • Property svn:keywords set to Author Date Id Revision
    r1204 r1717  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
    8 // | file          : $RCSfile$
    9 // | last update   : $Date: 2005-12-03 17:03:58 -0500 (Sat, 03 Dec 2005) $
    10 // | last modifier : $Author: plg $
    11 // | revision      : $Revision: 967 $
     8// | file          : $Id$
     9// | last update   : $Date$
     10// | last modifier : $Author$
     11// | revision      : $Revision$
    1212// +-----------------------------------------------------------------------+
    1313// | This program is free software; you can redistribute it and/or modify  |
     
    202202  if ($conf['use_exif'])
    203203  {
    204     $exif = get_sync_exif_data($file);
    205 
    206     if (count($exif) > 0)
    207     {
    208       foreach (array_keys($exif) as $key)
    209       {
    210         $data[$key] = addslashes($exif[$key]);
    211       }
    212     }
     204    $data = array_merge($data, get_sync_exif_data($file) );
    213205  }
    214206
    215207  if ($conf['use_iptc'])
    216208  {
    217     $iptc = get_sync_iptc_data($file);
    218     if (count($iptc) > 0)
    219     {
    220       foreach (array_keys($iptc) as $key)
    221       {
    222         $data[$key] = addslashes($iptc[$key]);
    223       }
    224     }
     209    $data = array_merge($data, get_sync_iptc_data($file) );
    225210  }
    226211
Note: See TracChangeset for help on using the changeset viewer.