diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-03 18:26:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-03 18:26:35 +0000 |
commit | c90e16721a0660dc2dedbd31a9df428e03b7ff13 (patch) | |
tree | 1d3165032f3cf2c735edfb0f6d1ff3eb412fd1a1 /modules | |
parent | bea411e11467dbed592f560ac4eedb26b7bd36b6 (diff) | |
download | brdo-c90e16721a0660dc2dedbd31a9df428e03b7ff13.tar.gz brdo-c90e16721a0660dc2dedbd31a9df428e03b7ff13.tar.bz2 |
- Patch #359276 by Freso, Heine, lyricnz: avoid double encoding/decoding of HTML entities.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/filter/filter.test b/modules/filter/filter.test index a9738a97a..cf06b6da3 100644 --- a/modules/filter/filter.test +++ b/modules/filter/filter.test @@ -399,6 +399,15 @@ class FilterTestCase extends DrupalWebTestCase { $f = filter_xss("\xc0aaa"); $this->assertEqual($f, '', t('HTML filter -- overlong UTF-8 sequences.')); + + $f = filter_xss("Who's Online"); + $this->assertNormalized($f, "who's online", t('HTML filter -- html entity number')); + + $f = filter_xss("Who&#039;s Online"); + $this->assertNormalized($f, "who's online", t('HTML filter -- encoded html entity number')); + + $f = filter_xss("Who&amp;#039; Online"); + $this->assertNormalized($f, "who&#039; online", t('HTML filter -- double encoded html entity number')); } /** |