Diferior CMS on steroids
+1404 / 2338617 ( online 8 )

Torrent file naming bug


Forum posts: 98
p2pmylife (Talks a lot) @ 09 02 28 - 09:51:12
I've find a new (other) bug, when you upload a torrent on diferior, you got to be prudent with the parsing of the name of your file and/or .torrent file, because sometimes you'll got MySQL error with some caracters like „ ' “, the parsing doesnt set a \ before it, and MySQL engine is set in error with a bad end of the SQL request ....

Can you fix that ? Because a lot of file (especially american/english) use the ' caracter ...

Thanks ;) !
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 09 03 02 - 15:41:43
This seems to be a rather serious bug. However the problem is not with torrent names, but with tag parsing.
Either disable tags or add this to functions/download.php, line 754, like so:
$links = $this -> db -> escape ( $links, false, true, true ); // Add this: $tags = $this -> db -> escape ( $tags );
Forum posts: 98
p2pmylife (Talks a lot) @ 09 03 03 - 14:42:30
Ok I'll try that and check if that work !