summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-04-05 04:08:24 +0000
committerBharat Mediratta <bharat@menalto.com>2009-04-05 04:08:24 +0000
commitfde707388617f9225843333badad404d6883c283 (patch)
tree7b5932aa2799839bbf4863c197e429ecf72845bf
parentfabb9fb4bd0a3dacee7f0b45903987e1e1a4c6bd (diff)
Strip trailing nulls off of some tags.
-rw-r--r--modules/tag/helpers/tag_event.php1
1 files changed, 1 insertions, 0 deletions
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;
}
}