Menu

#165 Closing quotes problem with HTML images

closed-accepted
nobody
5
2002-02-24
2002-02-12
Anonymous
No

Found a problem in MIME.PHP, in the stripEvent
function. In the code that parses the "src" parameter
for an inline HTML tag, there are two "while" loops
that look for the end of the src parameter value.
These loops, upon finding the last character
indicating the end of the value, are keeping the index
pointer positioned on that last character. When the
resulting value is passed on through the remainder of
the stripEvents function, an extra quote (") character
is appended to the end of the SRC value. This is
evident in any HTML message by viewing the source of
the page and picking out any image tag. I caught this
when I received a couple of mailings from Amazon.com,
and the formatting of the messages was very garbled.
This extra quote triggered a whole host of mis-matched
quotes throughout the message.

My changes are identified with comments beginning

//02/12/2002 TM

both consisting of one line of code:

$k++;

Discussion

  • Nobody/Anonymous

    Fix for extra closing quote in image tags

     
  • Anonymous

    Anonymous - 2002-02-24
    • status: open --> closed-accepted
     

Log in to post a comment.