Menu

#158 Still got Invalid range warning

Reproducible
closed-fixed
5
2002-03-11
2002-02-25
Patrick
No

Hi,

we use NOCC v0.9.5 and still get the warning:
Warning: Invalid range end in webmail/functions.php on
line 448.

It is not really reproducible, it happens from time to
time.

I replaced the eregi_replace line 448 with the
following code that fixed the warning.

$body = preg_replace("/([0-9a-zA-Z]([-_.]?[0-9a-zA-Z])
*@[0-9a-zA-Z]([-.]?[0-9a-zA-Z])*\.[a-zA-Z]{2,})/", "<a
href=\"$PHP_SELF?
action=write&mail_to=\\1&lang=$lang&$php_session=$sessi
d\">\\1</a>", $body);

Regards Patrick

Discussion

  • Anonymous

    Anonymous - 2002-02-25

    Logged In: YES
    user_id=29685

    I actually closed previous bug report because I added this
    to the FAQ, see http://nocc.sourceforge.net/page.php?file=FAQ
    Therefore, you provide a fix, which is interesting !
    I guess I'll also move every eregi_replace() call to
    preg_replace() as documentation says it's faster.

    Thanks for the patch ! I'll apply it asap.

     
  • Anonymous

    Anonymous - 2002-02-25
    • assigned_to: nobody --> wolruf
    • status: open --> open-accepted
     
  • Nobody/Anonymous

    Logged In: NO

    I get this problem, too.

    It SEEMS to happen more on forwarded messages..However,
    when you get it, if you click on the Header button, it will
    show you the message.

    I'm wondering if it has something to do with the headers
    not separating from the email...

     
  • Daniel Senie

    Daniel Senie - 2002-03-08

    Logged In: YES
    user_id=282992

    changing to the code from Patrick clears up the issue.
    Looks like this could go in to the next release.

     
  • Anonymous

    Anonymous - 2002-03-11

    Logged In: YES
    user_id=29685

    Fixed in CVS, thanks for the patch.

     
  • Anonymous

    Anonymous - 2002-03-11
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.