Menu

#5 $bound in regex not quoted

closed-fixed
Significant (3)
5
2002-08-23
2002-08-19
Anonymous
No

On line 65 in version 0.8.4, $bound is not quoted with
\Q$bound\E... This breaks some emails from mailers like
incredimail that use ++ in the boundary; as ++ is invalid regular
expression syntax. There is no reason not to add \Q \E to the
regular expression as $bound shouldn't be processed for RE
characters.

Discussion

  • Jack Bates

    Jack Bates - 2002-08-21

    Logged In: YES
    user_id=598446

    I originally submitted this bug. Fix:

    Line 65:
    if (($bound ne "") && ($_[0] =~ /^[\s-]*$bound/))

    becomes

    if (($bound ne "") && ($_[0] =~ /^[\s-]*\Q$bound\E/))

     
  • Jack Bates

    Jack Bates - 2002-08-21
    • assigned_to: nobody --> jbates
     
  • Jack Bates

    Jack Bates - 2002-08-23

    Logged In: YES
    user_id=598446

    Fixed in 0.8.6...

     
  • Jack Bates

    Jack Bates - 2002-08-23
    • status: open --> closed-fixed
     

Log in to post a comment.