I have an image.php with the following code that displays above the picture.
<?php
defined( '_VALID_TWG' ) or die( 'Direct Access to this location is not allowed.' );
//variables used
$folder = "$directory/";
$file = "$image";
?>
<a style="font-weight: bold;" target="_blank" href="<?php echo $folder;?><?php echo $file;?>">Download a copy of this image</a><img
style="border: 0px solid ; width: 25px; height: 25px;"
alt="Download Image Icon"
src="#removed_broken_link/buttons/downloads/download_image.gif">
It works fine normally, but if there is a space in the file name of the photo (which file minimizer automatically creates) then it puts a + in the link where the space should be rather than leaving it blank or replacing with %20, both which do work.
For example, this image:
#removed_broken_link/index.php ... zer%29.jpg
the image.php tries to open the link:
#removed_broken_link/pictures/ ... zer%29.jpg
which doesnt work. Where the + is needs to be either %20 or just a space, but i dont know how to change this since its not in my bit of code. If you manually change the above link, so:
#removed_broken_link/pictures/ ... zer%29.jpg
then it works fine?
Cheers