HTML entities not being filtered in output e-mail

rmyoung - July 20, 2008 - 08:19
Project:Listhandler
Version:5.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:philipnet
Status:closed
Description

I am not sure if this is a listhandler issue, it may actually be a mailman issue but thought I would rule this out first.

I am using FCKeditor on my site and for empty lines it adds <p>&nbsp;</p>. In the plain text emails sent to the list the xhtml tags <p>,</p>, etc are filtered out but the character coding &nbsp; is not.

Does listhandler or drupal do any filtering when sending the mail or is that all done by mailman?

#1

philipnet - July 20, 2008 - 09:22
Title:Character not being filtered in mail. » HTML entities not being filtered in output e-mail
Version:5.x-1.0-beta2» HEAD
Component:Miscellaneous» Code
Category:support request» bug report
Assigned to:Anonymous» philipnet

It would be Listhandler/Drupal converting the email before sending it to the list.

Let's see if drupal.org is immune to this:   ?
If you didn't see it, there was a non-breaking space encoded between the colon and question mark.

Listhandler calls the PHP function strip_tags before sending the email. In Drupal 6 there's the funky function drupal_html_to_text: http://api.drupal.org/api/function/drupal_html_to_text/6 which not only filters out tags, it decodes the HTML entities. But it's only in Drupal 6.

P.

#2

philipnet - July 20, 2008 - 09:25
Version:HEAD» 5.x-1.0-beta2

Drupal.org is immune to this, so maybe there's something I can borrow from Project Issue (or whatever) that will help.

Regards.

P.

#3

philipnet - July 26, 2008 - 16:22
Status:active» fixed

Fixed in latest commit.
Please test.

P.

#4

Anonymous (not verified) - August 9, 2008 - 16:24
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#5

rmyoung - August 20, 2008 - 02:56

Thanks Philip,
Filtering now working as expected.

 
 

Drupal is a registered trademark of Dries Buytaert.