S
Stuart D. Gathman
Running the following with Python 2.2.2:
from email.Parser import Parser
txt = """Subject: IE is Evil
Content-Type: image/pjpeg; name="Jim&&Jill"
<html>
</html>
"""
msg = email.message_from_string(txt)
print msg.get_params()
I get:
[('image/pjpeg', ''), ('name', '"Jim&'), ('&', ''), ('Jill"', '')]
What IE apparently gets is:
[('image/pjpeg', ''), ('name', '"Jim&&Jill"')]
Is this a bug (in the email package, I mean - obviously IE is buggy)?
Do I have to write my own custom param parsing routines to handle this?
from email.Parser import Parser
txt = """Subject: IE is Evil
Content-Type: image/pjpeg; name="Jim&&Jill"
<html>
</html>
"""
msg = email.message_from_string(txt)
print msg.get_params()
I get:
[('image/pjpeg', ''), ('name', '"Jim&'), ('&', ''), ('Jill"', '')]
What IE apparently gets is:
[('image/pjpeg', ''), ('name', '"Jim&&Jill"')]
Is this a bug (in the email package, I mean - obviously IE is buggy)?
Do I have to write my own custom param parsing routines to handle this?