Author Topic: Is this a Bug in the download.php?  (Read 4996 times)

0 Members and 1 Guest are viewing this topic.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Is this a Bug in the download.php?
« on: October 11, 2005, 01:26:42 PM »
I have a Problem with the remote_url and then i try to find out what´s going wrong.
I make a few debug logs and found out that the following if give me always $remote_url=0 back.
Then i put the red line in the Code and now it works fine.


Quote
if (!empty($image_row['image_download_url'])) {
    if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
      ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
      $file_name = $regs[1];
      $file_extension = $regs[2];

      $file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
      $file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
      $remote_url = 1;
    }
    else {
      $file['file_path'] = $image_row['image_download_url'];
      $remote_url = 1;
    }
  }

Is this a Bug?  :?

Offline Sonic

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Is this a Bug in the download.php?
« Reply #1 on: October 13, 2005, 07:23:48 PM »
what file is this?

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.420
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Is this a Bug in the download.php?
« Reply #2 on: October 13, 2005, 07:28:38 PM »
do you see the thread titel?

Offline Sonic

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Is this a Bug in the download.php?
« Reply #3 on: October 13, 2005, 08:33:40 PM »
yeah i see, and i did what you did, and my problem still exsists.