summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-14 17:29:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-14 17:29:07 +0000
commit78167c02518ff9d757741f0e8df524da300d067d (patch)
treed5fbbc41f6e807439de0d34ca9a06616dd961d04 /lib/general.lib.php
parent9a16ee2c2ce55e7693c9432be2466210a0ebc6df (diff)
downloadampache-78167c02518ff9d757741f0e8df524da300d067d.tar.gz
ampache-78167c02518ff9d757741f0e8df524da300d067d.tar.bz2
ampache-78167c02518ff9d757741f0e8df524da300d067d.zip
removed extra lines from ajax, down to 86, updated ajax calls, added ldap auth
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']);