4images Forum & Community

4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: thunderstrike on September 12, 2007, 03:34:57 AM

Title: [FIX] - Download.php file
Post by: thunderstrike on September 12, 2007, 03:34:57 AM
Detail: Fix for get_basefile in download.

Find:

Quote
$file_name = get_basefile($image_row['image_media_file']);

replace:

Code: [Select]
$file_name = get_basefile(stripslashes($image_row['image_media_file']));

find (2 time):

Quote
ereg("(.+)\.(.+)", get_basefile($image_row['image_media_file']), $regs);

replace:

Code: [Select]
preg_match("/(.+)\.(.+)/", get_basefile(stripslashes($image_row['image_media_file'])), $regs);
Title: Re: [FIX] - Download.php file
Post by: batu544 on October 05, 2007, 08:55:09 AM
hi thunderstrike,
                         If I will use this fix then what will happen ? Now I am not getting any probelm without this fix ... :wink:
Title: Re: [FIX] - Download.php file
Post by: thunderstrike on October 05, 2007, 12:17:59 PM
Without fix example file result: \test\.jpg\
With fix example file result: test.jpg

;)