mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
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
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user