[imp] HTML Emails
Adrian Esteban Madrid
aemadrid at hyperxmedia.com
Wed Nov 12 17:46:50 PST 2003
Tried that before but this time I looked at the source and this is what
I found:
<cleaned_tag type='text/css'>
Looks like IMP is filtering the CSS. I've been searching in imp/config/*
for clean and found nothing. I looked in the whole imp/* and found that
in imp/lib/MIME/Viewer/html.php is the code that creates the cleaned_tag
stuff.
/* Get all tags that might cause trouble - <script>, <embed>,
etc. Meta refreshes and iframes, too. */
$malicious = array('|<([^>]*)s\s*c\s*r\s*i\s*p\s*t|i',
'|<([^>]*)embed|i',
'|<([^>]*)meta|i',
'|<([^>]*)j\sa\sv\sa|i',
'|<([^>]*)object|i',
'|<([^>]*)iframe|i',
*'|<(\s*)style|i');*
$data = preg_replace($malicious, '*<cleaned_tag*', $data);
Looks like it is hardcoded and no setting for it. It definetely should
there be one. Anyway, I thought I scould share that with everyone.
Thanks everyone!
Andrew Morgan wrote:
>On Wed, 12 Nov 2003, Adrian Esteban Madrid wrote:
>
>
>
>>Thanks! It finally shows the html! Nevertheless, it is not showing/using
>>the inline CSS on the email. Again, thunderbird, and yahoo for that
>>matter, do use it. I tried adding 'text/css' to the sttings but it did
>>not work. Any ideas?
>>
>>Thanks again,
>>
>>Adrian
>>
>>
>
>If it is a MIME multi-part message (one text part, one html part), open
>the message, then click on the html part listed right below the subject
>line. It will open in a new browser window where the message's CSS can
>take full effect.
>
> Andy
>
>
>
>
--
----------------------
Adrian Esteban Madrid
HyperXMedia, Developer
======================
More information about the imp
mailing list