Author Topic: [FIX] - Download.php file  (Read 8945 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
[FIX] - Download.php file
« 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);
« Last Edit: August 27, 2011, 01:48:40 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [FIX] - Download.php file
« Reply #1 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:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [FIX] - Download.php file
« Reply #2 on: October 05, 2007, 12:17:59 PM »
Without fix example file result: \test\.jpg\
With fix example file result: test.jpg

;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?