Menu

#6 invalid passkey (strange announce url) fix

open
nobody
None
5
2004-12-13
2004-12-13
Kalle
No

Some announcers/sites use (illegal?) metods with an
announce url that doesn't end in a ? / NULL like
'/announce.php' but instead have something like
'announce.php?passkey=foobar'. Ctorrent results in
getting invalid passkey on these. The patch below
"fixes" it.

--- httpencode.cpp.orig Tue Dec 14 00:47:06 2004
+++ httpencode.cpp Tue Dec 14 00:50:09 2004
@@ -88,7 +88,7 @@

/* path */
if( *p != '/' ) return -1;
- for( ; *p && *p != '?'; p++,path++) *path = *p;
+ for( ; *p; p++,path++) *path = *p;
*path = '\0';
return 0;
}

Discussion

  • Kalle

    Kalle - 2004-12-13
    • summary: passkey (fucked up announce url) fix --> invalid passkey (strange announce url) fix
     
  • Nobody/Anonymous

    Logged In: NO

    can we get this included in the source ?

     
  • Nobody/Anonymous

    Logged In: NO

    it works!!!:D thx

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.