1
Support / "&" Character is replaced with "&"
« on: April 25, 2013, 01:24:21 pm »
Hi!
I have a problem with Download System 1.4.1 (not pro) and SMF 2.0.4 ...
Character & in the link line is automatically replaced with & when i press a download buttom...
To be more clearly: when you try to add a new downlad and in the window "Upload Url: " you put al link who has a "&" character the end result when you click a downlond button the characters will change in to "&" .
For example:
Original link : http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144
The out going link: http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144
It already was such a question here http://www.smfhacks.com/index.php/topic,6731.0.html
Administrator SMFHacks wrote
Bhut when i do that the download crashes
What can be done, please help
I have a problem with Download System 1.4.1 (not pro) and SMF 2.0.4 ...
Character & in the link line is automatically replaced with & when i press a download buttom...
To be more clearly: when you try to add a new downlad and in the window "Upload Url: " you put al link who has a "&" character the end result when you click a downlond button the characters will change in to "&" .
For example:
Original link : http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144
The out going link: http://www.familienforum.biz/DB/index.php?page=EntryFileDownload&fileID=144
It already was such a question here http://www.smfhacks.com/index.php/topic,6731.0.html
Administrator SMFHacks wrote
Quote
Open the Sources/Downloads.php file
Find all instances ofCode: [Select]$fileurl = htmlspecialchars($_REQUEST['fileurl'],ENT_QUOTES);
Replace withCode: [Select]$fileurl = mysql_escape_string($_REQUEST['fileurl']);
Bhut when i do that the download crashes
What can be done, please help