summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index ab28eebb..7923a96d 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -399,6 +399,11 @@ function clean_tag_info($results,$key,$filename) {
$info['track'] = intval($results[$key]['track']);
$info['comment'] = sql_escape(str_replace($clean_array,$wipe_array,$results[$key]['comment']));
+ if (strlen($info['comment']) > 254) {
+ debug_event('catalog','Error: Comment over 254 Char, truncating',4);
+ $info['comment'] = substr($info['comment'],0,254);
+ }
+
/* This are pulled from the info array */
$info['bitrate'] = intval($results['info']['bitrate']);
$info['rate'] = intval($results['info']['sample_rate']);