Changeset 1717 for trunk/admin/tags.php


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/tags.php

    • Property svn:eol-style set to native
    • Property svn:keywords set to Author Date Id Revision
    r1571 r1717  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2005 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: 2006-03-09 23:46:28 +0100 (jeu, 09 mar 2006) $
    10 // | last modifier : $Author: rub $
    11 // | revision      : $Revision: 1072 $
     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  |
     
    156156SELECT id
    157157  FROM '.TAGS_TABLE.'
    158   WHERE name = \''.pwg_quotemeta($tag_name).'\'
     158  WHERE name = \''.$tag_name.'\'
    159159;';
    160160  $existing_tags = array_from_query($query, 'id');
     
    167167      array(
    168168        array(
    169           'name' => pwg_quotemeta($tag_name),
     169          'name' => $tag_name,
    170170          'url_name' => str2url($tag_name),
    171171          )
     
    177177      sprintf(
    178178        l10n('Tag "%s" was added'),
    179         pwg_stripslashes($tag_name)
     179        stripslashes($tag_name)
    180180        )
    181181      );
     
    187187      sprintf(
    188188        l10n('Tag "%s" already exists'),
    189         pwg_stripslashes($tag_name)
     189        stripslashes($tag_name)
    190190        )
    191191      );
Note: See TracChangeset for help on using the changeset viewer.