| Summary | strip style attributes code and Firefox 3.0.1 (Mozilla 5) |
| Queue | Horde Base |
| Queue Version | 3.2.2 |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | jan (at) horde (dot) org |
| Requester | agerhard (at) usp (dot) br |
| Created | 09/23/2008 (6252 days ago) |
| Due | |
| Updated | 09/24/2008 (6251 days ago) |
| Assigned | 09/23/2008 (6252 days ago) |
| Resolved | 09/24/2008 (6251 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
Assigned to Jan Schneider
State ⇒ Resolved
http://cvs.horde.org/diff.php/imp/lib/MIME/Viewer/html.php?r1=1.148&r2=1.149&ty=u
rendering those messages inline. It's a bug if that doesn't happen.
version.
filtered out as they should.
rendering those messages inline. It's a bug if that doesn't happen.
version.
New Attachment: bad_message.txt
HTML message is breaking the page layout, you have to live with that
if you enable inline rendering of HTML messages.
rendering those messages inline. It's a bug if that doesn't happen.
The code from html.php is:
$strip_style_attributes = (($browser->isBrowser('mozilla') &&
$browser->getMajor() == 4) ||
$browser->isBrowser('msie'));
So when $browser->getMajor() == 5, $strip_style_attributes = 0
If I change the code to accept the 5 version, then strip_style_attributes = 1
and the page is rendered ok.
State ⇒ Feedback
HTML message is breaking the page layout, you have to live with that
if you enable inline rendering of HTML messages.
That being said, we *do* filter out style tags for any browser when
rendering those messages inline. It's a bug if that doesn't happen.
Please upload an example message.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ strip style attributes code and Firefox 3.0.1 (Mozilla 5)
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
mixes with the IMP code).
I think that the correct behavior is to strip the style tags, but this
didn't happens in Firefox 3.0.1.
There is a test in lib/Horde/MIME/Viewer/html.php that checks for the
major version of Mozilla.
This triggers the strip style attributes code / regexp in xss.php.
But It is checking only against version 4; Firefox 3.0.1 major version
is 5, so the strip style code
doesn't runs.