Ticket #1485108 (closed Bugs: fixed)

Opened 7 months ago

Last modified 7 months ago

Function function rcmail_html_filter() problem with preg_replace for some HTML emails (Fatal error: Maximum execution time of 120 seconds exceeded in func.inc on line 600)

Reported by: Makc666 Owned by:
Priority: 6 Milestone: 0.2-alpha
Component: Core functionality Version: 0.1.1
Severity: major Keywords:
Cc:

Description

Function function rcmail_html_filter() problem with preg_replace for some HTML emails (Fatal error: Maximum execution time of 120 seconds exceeded in func.inc on line 600)

Steps:
1. Go to webmail and found the email I attached
2. Try to open it with double click that email
3. After 120 seconds I see 500 server error
4. In logs I see:

[07-Jun-2008 12:54:02]
PHP Fatal error:  Maximum execution time of 120 seconds exceeded in
/www/webmail/program/steps/mail/func.inc on line 600

Line 600 is:

$html = preg_replace('/'.preg_quote($tags[0][$nr], '/').'/', $newtag, $html);

If I comment out this line I can see that email vey quickly.

I will try to attach the email which causes the problem.
The email it take physically from server.

Trying to change in index.php:

if (!ini_get('safe_mode')) @set_time_limit(120);

to smth like 600 didn't give any result.
The same 500 serve r error and PHP Fatal error.

Attachments

ticket_1485108_testmail.rar (5.7 kB) - added by Makc666 7 months ago.
Problem email

Change History

Changed 7 months ago by Makc666

Problem email

Changed 7 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from later to 0.2-alpha

rcmail_html_filter is not used any more in trunk version. Attached mail works for me.

Changed 7 months ago by Makc666

alec, can not you guess why this email, as I understand, loops in this line #600? Maybe some symbol or combination of characters in it was wrong?

Thank you in advance for your reply!

Note: See TracTickets for help on using tickets.