[SOLVED] Bug with files which have a space in their title

Found any bugs with any of our scripts? Post in here...

[SOLVED] Bug with files which have a space in their title

Postby Elthib » Mon Mar 28, 2011 7:13 pm

Hi all,

I discover a bug in your script. There is a bug with files which have a space in their name when we click on "Download File Now". For example :

"file-test.zip" will work for download

but

"file test.zip" will not download...

Moreover, i think there is a problem with captcha code...
Elthib
Standard Member
 
Posts: 9
Joined: Mon Mar 28, 2011 3:30 pm

Re: Bug with files which have a space in their title

Postby Mpeter19 » Mon Mar 28, 2011 7:29 pm

file download works without problems!

Do you have all rights set correctly? so you can check how the admin pannel to check the entry!
Mpeter19
Standard Member
 
Posts: 6
Joined: Mon Mar 28, 2011 2:38 am

Re: Bug with files which have a space in their title

Postby Elthib » Mon Mar 28, 2011 7:59 pm

Yes all is chmod to 777

I've got that problem only with files with a space in their name, like i said :

"file-one.rar" or "file_one.rar", for example, will download but

"file one.rar" with a space won't download...
Elthib
Standard Member
 
Posts: 9
Joined: Mon Mar 28, 2011 3:30 pm

Re: Bug with files which have a space in their title

Postby Elthib » Mon Mar 28, 2011 10:27 pm

well... i think it's because i deleted some datas concerning the security code for download ... it didn't like it... :lol:

i would like to remove the security code, how can we do that ?
Elthib
Standard Member
 
Posts: 9
Joined: Mon Mar 28, 2011 3:30 pm

Re: [SOLVED] Bug with files which have a space in their titl

Postby SamEA » Mon Mar 28, 2011 11:15 pm

Elthib wrote:Hi all,

I discover a bug in your script. There is a bug with files which have a space in their name when we click on "Download File Now". For example :

"file-test.zip" will work for download

but

"file test.zip" will not download...

Moreover, i think there is a problem with captcha code...


Captcha should be working just fine, unless it doesn't show at all which means it's a PHP config issue, however in regards to the space issue I have added a code in ./upload.php to replace all files including spaces with an underscore ("_"). Just download the newer and updated version here: http://www.daddyscripts.com/forum/viewtopic.php?f=4&t=29&p=121#p121 and replace the ./upload.php file. To change the underscore to another character, just modify the following piece of code in ./upload.php where it contains the underscore
Code: Select all
$filename = str_replace(" ",'_',"$filename");
.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: [SOLVED] Bug with files which have a space in their titl

Postby Elthib » Tue Mar 29, 2011 11:35 am

okay, it works fine now, thanks for your help ;)
Elthib
Standard Member
 
Posts: 9
Joined: Mon Mar 28, 2011 3:30 pm


Return to Bug Tracker

Who is online

Users browsing this forum: No registered users and 7 guests

cron