Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 1.X » Bug Reports » ABC, G3 Torrent, XBT - "missing key" error
ABC, G3 Torrent, XBT - "missing key" error [message #1998] Fri, 09 May 2008 22:13 Go to next message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
Ok so here's the fix to the problem I was talking about before:
The problem is simple when you try to use any of those 3 clients (maybe some more out there), you'll get error "missing key"

Here's a fix:
find this line in announce.php
$req = "info_hash:peer_id:!ip:port:uploaded:downloaded:left:!event:!key:!compact:!no_peer_id:!passkey";

and put these before:
if (strpos($passkey, "?"))
{
  $tmp = substr($passkey , strpos($passkey , "?"));
  $passkey  = substr($passkey , 0,strpos($passkey , "?"));
  $tmpname = substr($tmp, 1, strpos($tmp, "=")-1);
  $tmpvalue = substr($tmp, strpos($tmp, "=")+1);
  $$tmpname = $tmpvalue;
}


Should be fixed Smile

*EDIT* maybe it should be better to put $passkey=$_GET["passkey"]; before the if, but it works for me even without it...

[Updated on: Fri, 09 May 2008 22:14]

Report message to a moderator

Re: ABC, G3 Torrent, XBT - "missing key" error [message #2027 is a reply to message #1998] Tue, 13 May 2008 00:09 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
i would put this fix into CVS, but i don't know the code well enough to assess it.. can you put it in, joe?
Re: ABC, G3 Torrent, XBT - "missing key" error [message #2044 is a reply to message #2027] Sat, 17 May 2008 20:28 Go to previous message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
lodp wrote on Mon, 12 May 2008 16:09

i would put this fix into CVS, but i don't know the code well enough to assess it.. can you put it in, joe?

all that should be needed to do is to put those lines i posted and put them after the GetUserAgent function and before $req...
at least for me they work ok there Laughing
Previous Topic:Bug in announce.php when parsing data sent from client
Next Topic:searching with include dead torrent option
Goto Forum:
  


Current Time: Wed Feb 08 11:44:25 GMT 2012

Total time taken to generate the page: 0.00758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software