Menu

#139 1.5.2cvs Maximum execution time exceeded in strings.php

open
nobody
5
2014-02-14
2007-04-26
No

Whenever a reply an email with a long (usually encoded message in the body) string strings.php times out in line 274.

Apparenlty it can't find a whitespace (or takes a long time to do so) and times out.

the problem is in these lines:

// start looking backwards for whitespace to break at.
$breakPoint = $eol;
while (($breakPoint > $pos) && (! ctype_space (sq_substr($body,$breakPoint,1)))) {
$breakPoint--;
}

Discussion

  • Thijs Kinkhorst

    Thijs Kinkhorst - 2007-05-02

    Logged In: YES
    user_id=285765
    Originator: NO

    Can you provide an example message that shows this problem, please?

     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2007-05-30

    Logged In: YES
    user_id=285765
    Originator: NO

    Hi, do you have such a message available? Or can you describe what kind of strings cause this?

     
  • javier wilson

    javier wilson - 2007-08-12

    Logged In: YES
    user_id=501964
    Originator: YES

    The message was a MIME encoded, only there was a problem with the original sender's email client
    so the whole MIME encoded (or base64, i don't know) text was sent as plain text, something like:

    bmljYSBEaWdpdGFsIENhbWVyYSBLRC00MDBaAB8AmoIFAAEAAADqAQAAnYIFAAEAAADyAQAAJ4gDAAEAAABkAAAAAJAHAAQAAAAwMjIwA5ACABQAAAD6AQAABJACABQAAAAOAgAAAZEHAAQAAAABAgMA
    ApEFAAEAAAAiAgAAA5IKAAEAAAAqAgAABJIKAAEAAAAyAgAABZIFAAEAAAA6AgAAB5IDAAEAAAACAAgBCJIDAAEAAAAAAEQACZIDAAEAAAAYAFIBCpIFAAEAAABCAgAAfJIHALACAABKAgAAAKAHAAQA
    AAAwMTAwAaADAA

    but a lot longer. I have not been able to reproduce this bug. sorry.

     
  • javier wilson

    javier wilson - 2007-09-05

    Logged In: YES
    user_id=501964
    Originator: YES

    i got an exmple, the text is like the 100 times the attachment.

    File Added: base64.txt

     
  • javier wilson

    javier wilson - 2007-09-05

    example of text inside the email that causes the problem

     

Log in to post a comment.