From fde707388617f9225843333badad404d6883c283 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 5 Apr 2009 04:08:24 +0000 Subject: Strip trailing nulls off of some tags. --- modules/tag/helpers/tag_event.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/tag/helpers') diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php index 93e77c6c..a301c441 100644 --- a/modules/tag/helpers/tag_event.php +++ b/modules/tag/helpers/tag_event.php @@ -33,6 +33,7 @@ class tag_event_Core { $iptc = iptcparse($info["APP13"]); if (!empty($iptc["2#025"])) { foreach($iptc["2#025"] as $tag) { + $tag = str_replace("\0", "", $tag); $tags[$tag]= 1; } } -- cgit v1.2.3