svncommit
2009-02-17 e5dd92490cddb06112d3b93ff1efa304b6f827c7
Fix pspell's handling of special html characters (#1485744)


1 files modified
1 ■■■■ changed files
program/steps/mail/spell_pspell.inc 1 ●●●● patch | view | raw | blame | history
program/steps/mail/spell_pspell.inc
@@ -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 );