getting wrong hash... ideas?

Started by Hyperion (noobKID), September 16, 2012, 03:43:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hyperion (noobKID)

#10
ahh... ok, thanks for knowledge!.. trying now! :)...

EDIT: Working now!... thanks alot DudE!!!!! :D:D:D:D...

Mindless

For announce it has to be put on announce.php as its standalone, then you wont get malformed characters in the infohash if it was indeed magic quotes doing the damage, clients can also cause issue but more likely to be magic quotes, adding it to bittorrent.php will stop slashes being added anywhere a quotes used like shout - news ect ect

''' \'\'\' """ \"\"\"

Hyperion (noobKID)

ahh... ok...
i have now commented the code out of what it does for future use... thanks!...

will test a torrent now...
im home now...

PS: is it ok just to put it into announce.php itself?...
im using Version 1 (non memcached)...?....

-thanks in advance... :).

Mindless

It was put into V3 for folk that couldn't work out how to disable the magic quotes or for those with no access to do so.

Hyperion (noobKID)

#6
but im using Version 1...
and sorry... did not look in there, will remember till next time...

-thanks.... will test and post feedback later when tested! :)...

Mindless

Add to bittorrent.php - Add to ann_config.php


// ///////Strip slashes by system//////////
function cleanquotes(&$in)
{
    if (is_array($in)) return array_walk($in, 'cleanquotes');
    return $in = stripslashes($in);
}
if (get_magic_quotes_gpc()) {
    array_walk($_GET, 'cleanquotes');
    array_walk($_POST, 'cleanquotes');
    array_walk($_COOKIE, 'cleanquotes');
    array_walk($_REQUEST, 'cleanquotes');
}


Its already part of v3 - the reference is all there if you would take the time to do so.

MrRep

add this to your htacess file

<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
</IfModule>

Hyperion (noobKID)

#3
What if i do not have acces to a php.ini file?...

im on a shared server...
so i do not...

also, my system is a CentOS 6 Version, with latest PHP...
(AND)

i also remember that the old tbdev had some sort of way to write inside announce.php if i remember right so it would be working...

any ideas?...

and as stupid as i am, then i forgot to save that script... because i was beginning on this U-v1 script...

Hoping answers soon :)...

rushed

are magic quotes disabled in the php.ini file? I had an issue like this till I disabled them

Hyperion (noobKID)

#1
this might allready have been answered... but i cannot find it on here, so i just make a new thread...

im getting this in Deluge after adding the torrent to seed:

DOMAIN.COM: Error: Invalid info_hash (21 - %B0r%3C%5C%22f%FAs%81%9CU%B9v%9C%97%83%E8%12%2B%A6%A9)

ideas?...
could it be the .htacces file?...
this is my htacces:

deny from all,

######################
#ErrorPages
ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500
##################################################

-thanks in advance...

EDIT: could it be somfthing about using Magic_quotes inside htacces file?... if so, how to use... i know there was some sort of solution on tbdev for this... but i just can't remember on how to use them...

somfthing we could add to a file so it would work orr somfthing like that...

ideas?...