Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
An Fix for weird torrent names.
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-05-20 21:40:59
Ok if you have weird torrent names that have stuff like "`' in them they will error out when trying to download if using the default svn 2.08:(

This fix will fix that and should work in any version that has sqlesc in it.

In download.php change both:

header('Content-Disposition: attachment; filename="'.$name.'"');

to
header('Content-Disposition: attachment; filename='.sqlesc($name).'');

I dont know if this will fix other language issues but someone reported back it does fix the above weird chars.
2013-05-20 22:09:43
:huh:  Ã‰ffectivement, de mon coter j'ai une mini description sous le nom et sétais imposible avec des  ';

Woww! big thank!  ;)
***************************************?
:blink:  Indeed, in my dimension I have a mini description under the name and Setais imposible with;

Woww! big thank!  :D
Unknown User
2013-06-17 19:48:40
I think

header('Content-Disposition: attachment; filename="' . addslashes( $name ) . '"');


Would probably work also.
Unknown User
2013-06-21 13:40:18
i get a error on this renames all torrents and adds ' in name and takes .torrent off end
2013-06-23 14:02:37
exact! like for me!

Database Error. Please report this to an administrator.

Database Error in torrents-upload.php on line 355: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '  Upload de  Nouveau Torrent : [url="http://crazyspirits.com/torrents-details.php?id=991"][/url]tet;',  Upload de [url="http://crazyspirits.com/account-details.php?id=1"] SPIRITBLUE[/url]

Unknown User
2013-06-23 16:07:20
I found out its just simpler to use sqlesc like in the 1st post.

' does weird stuff even with addslashes..
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728