forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: blazer380 on April 08, 2005, 04:41:06 am

Title: Problems with Firefox
Post by: blazer380 on April 08, 2005, 04:41:06 am
Whenever I have a file that has spaces in it. And you click on 'Click Here to Download', it only tries to save everything before the space, so inevitably the extension doesnt get saved. It works fine in IE. Anything I can change in the code to let firefox recognize the spaces?

Maybe replacing htmlspecialchars with rawurlencode
If thats what I need to change, which file do I need to edit?
Title: Re: Problems with Firefox
Post by: blazer380 on April 08, 2005, 04:54:40 am
i tried replacing in displayimage.php:

Code: [Select]
download.php?pid={$CURRENT_PIC_DATA['pid']}\">Click here to download</a>
with

Code: [Select]
download.php?pid={rawurlencode($CURRENT_PIC_DATA['pid'])}\">Click here to download</a>
but i get a parse error.
Title: Re: Problems with Firefox
Post by: Vortex_ICS on April 28, 2005, 04:19:07 am
did somebody get this working ??  ???
Title: Re: Problems with Firefox
Post by: Casper on April 28, 2005, 12:10:08 pm
This is actually a mod you have added, and this should be on the thread dealing with that mod.

But you should always try to avoid having spaces in filenames and folders.