Roundcube Community Forum

Release Support => Pending Issues => Topic started by: progress on May 07, 2007, 10:18:46 AM

Title: I can't download attachments at all - even smallest one!
Post by: progress 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
Title: Re: I can't download attachments at all - even smallest one!
Post by: dhdh on June 24, 2007, 01:25:57 PM
I have the same problem.. is there a solution?
thanks!
Title: Re: I can't download attachments at all - even smallest one!
Post by: xceet 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