aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-05-18 07:15:23 +0000
committervdigital <vdigital@piwigo.org>2008-05-18 07:15:23 +0000
commit9b51fc117398af68c979bab9decad484d6d74a97 (patch)
treebb710b40a3be905ec19aa4883d8dd19e01cdda8e
parent069748aa9106c1a2a583e4ab295157c7a33ad33b (diff)
Bug: 816 - Leading and trailing spaces are removed from new tags (observed in some bugged metadata).
git-svn-id: http://piwigo.org/svn/trunk@2350 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/include/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index ef6449347..328a36ab7 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1496,7 +1496,8 @@ DELETE
function tag_id_from_tag_name($tag_name)
{
global $page;
-
+
+ $tag_name = trim($tag_name);
if (isset($page['tag_id_from_tag_name_cache'][$tag_name]))
{
return $page['tag_id_from_tag_name_cache'][$tag_name];