aboutsummaryrefslogtreecommitdiffstats
path: root/admin/tags.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-11 23:56:36 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-11 23:56:36 +0000
commitc75d7186d7a9b1d6f2e44d5deea3447c0fba11b4 (patch)
tree87ee26ed1e9fd166012c7b8ca4410056a51e9362 /admin/tags.php
parenta512c69225403aa0d6b926f757ffe23a3ff97b1f (diff)
- 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 git-svn-id: http://piwigo.org/svn/trunk@1717 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/tags.php')
-rw-r--r--admin/tags.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/admin/tags.php b/admin/tags.php
index 3b8048bc7..4344170c6 100644
--- a/admin/tags.php
+++ b/admin/tags.php
@@ -2,13 +2,13 @@
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
-// | file : $RCSfile$
-// | last update : $Date: 2006-03-09 23:46:28 +0100 (jeu, 09 mar 2006) $
-// | last modifier : $Author: rub $
-// | revision : $Revision: 1072 $
+// | file : $Id$
+// | last update : $Date$
+// | last modifier : $Author$
+// | revision : $Revision$
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
@@ -155,7 +155,7 @@ if (isset($_POST['add']) and !empty($_POST['add_tag']) and !is_adviser())
$query = '
SELECT id
FROM '.TAGS_TABLE.'
- WHERE name = \''.pwg_quotemeta($tag_name).'\'
+ WHERE name = \''.$tag_name.'\'
;';
$existing_tags = array_from_query($query, 'id');
@@ -166,7 +166,7 @@ SELECT id
array('name', 'url_name'),
array(
array(
- 'name' => pwg_quotemeta($tag_name),
+ 'name' => $tag_name,
'url_name' => str2url($tag_name),
)
)
@@ -176,7 +176,7 @@ SELECT id
$page['infos'],
sprintf(
l10n('Tag "%s" was added'),
- pwg_stripslashes($tag_name)
+ stripslashes($tag_name)
)
);
}
@@ -186,7 +186,7 @@ SELECT id
$page['errors'],
sprintf(
l10n('Tag "%s" already exists'),
- pwg_stripslashes($tag_name)
+ stripslashes($tag_name)
)
);
}