Browse Source

Limit title length in irc announce

spaghetti 7 years ago
parent
commit
32d128f188
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/upload/upload_handle.php

+ 1
- 1
sections/upload/upload_handle.php View File

@@ -698,7 +698,7 @@ $Announce = '';
698 698
 
699 699
 $Announce .= Artists::display_artists($ArtistForm, false);
700 700
 
701
-$Announce .= empty($Properties['Title']) ? (empty($Properties['TitleRJ']) ? trim($Properties['TitleJP']) : trim($Properties['TitleRJ'])) : trim($Properties['Title']);
701
+$Announce .= substr(trim(empty($Properties['Title']) ? (empty($Properties['TitleRJ']) ? $Properties['TitleJP'] : $Properties['TitleRJ']) : $Properties['Title']), 0, 100);
702 702
 $Announce .= ' ';
703 703
 if ($Type != 'Other') {
704 704
   $Announce .= '['.Torrents::torrent_info($Properties, false, false, false).']';

Loading…
Cancel
Save