Author Topic: I can't download attachments at all - even smallest one!  (Read 4377 times)

Offline progress

  • Newbie
  • *
  • Posts: 1
I can't download attachments at all - even smallest one!
« on: May 07, 2007, 10:18:46 AM »
I can't download any attachments. Doesn't matter how small they are. IE shows message page - page cannot be viewed, FF shows temporary file path on local drive and tells that original file (on server) couldn't be found.

error log shows message [10-May-2007 22:38:46] PHP Warning: preg_match() [function.preg-match]: Empty regular expression in /home/platne/my_account/public_html/my_site/webmail/program/steps/mail/func.inc on line 1177

Mentioned above line and its neighbourhood look like this:

// resolve
// $base_reg = '/()/i';
 if (preg_match($base_reg, $body, $regs))
  {
  $base_url = $regs[2];
  $body = preg_replace('/(src|background|href)=(["\']?)([\.\/]+[^"\'\s]+)(\2|\s|>)/Uie', "'\\1=\"'.make_absolute_url('\\3', '$base_url').'\"'", $body);
  $body = preg_replace('/(url\s*\()(["\']?)([\.\/]+[^"\'\)\s]+)(\2)\)/Uie', "'\\1\''.make_absolute_url('\\3', '$base_url').'\')'", $body);
  $body = preg_replace($base_reg, '', $body);
  }


I've removed slashes from:

// $base_reg = '/()/i';

and the only result I have is no error message in log file at all.


All (or almost all) other functions of RC are working ok!

I have RC 0.1 beta 2 running on Zeus Web Server (ZWS).

Any ideas?

Thanks in advance

Offline dhdh

  • Newbie
  • *
  • Posts: 1
Re: I can't download attachments at all - even smallest one!
« Reply #1 on: June 24, 2007, 01:25:57 PM »
I have the same problem.. is there a solution?
thanks!

Offline xceet

  • Newbie
  • *
  • Posts: 3
Re: I can't download attachments at all - even smallest one!
« Reply #2 on: June 28, 2007, 11:07:44 PM »
Hello,

I don't know if this will solve your issue, but you can try this:

http://roundcubeforum.net/forum/index.php?topic=1848.0

--

Xceet