Hello, many users of TSSE 5.6 had this problem.
When they tried to upload a torrent the got this message!
"What the hell did you upload? This is not a bencoded file!"
The problem lies in negative values being present in the torrent file, like this:
The torrents that were generated with utorrent version 3.0 + had this problem
because many private trackers don't accept negative values in the torrent file.
The problem is in the benc.php file
To fix this Find
PHP Code:
if (preg_match('/^i(\d+)e/', $s, $m)) {
change to:
PHP Code:
if (preg_match('/^i(-{0,1}\d+)e/', $s, $m)) {
Or download the fixed benc.php file from here and replace your old file with that.
(Its the Lateam's benc file version full decoded and fixed by me)