[Svn] r2298 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Wed Feb 18 02:07:23 CET 2009


Author: ksteinhoff
Date: 2009-02-17 19:07:23 -0600 (Tue, 17 Feb 2009)
New Revision: 2298

Modified:
   trunk/roundcubemail/program/steps/mail/spell_pspell.inc
Log:
Fix pspell's handling of special html characters (#1485744)


Modified: trunk/roundcubemail/program/steps/mail/spell_pspell.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/spell_pspell.inc	2009-02-17 22:20:44 UTC (rev 2297)
+++ trunk/roundcubemail/program/steps/mail/spell_pspell.inc	2009-02-18 01:07:23 UTC (rev 2298)
@@ -37,6 +37,7 @@
 $left = strpos($data, '<text>');
 $right = strrpos($data, '</text>');
 $text = substr($data, $left+6, $right-($left+6));
+$text = html_entity_decode($text, ENT_QUOTES);
 
 // tokenize
 $words = preg_split('/[ !"#$%&()*+\\,-.\/\n:;<=>?@\[\]^_{|}]+/', $text, NULL,  PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE );

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list