View Single Post
  #1  
Old 11th March 2012, 16:36
Black1 Black1 is offline
Senior Member
 
Join Date: Oct 2011
P2P
Posts: 55
Default [FINAL FIX] What the hell did you upload? [WORKING]


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:


Click the image to open in full size.

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)
Attached Files
File Type: php benc.php (2.8 KB, 305 views)
Reply With Quote
The Following 5 Users Say Thank You to Black1 For This Useful Post:
Barbarito (16th April 2020), Botanicar (28th July 2013), L3X (5th November 2012), Marco (28th June 2012), Wellingtonhuff (23rd October 2013)