summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-17 12:46:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-17 12:47:08 +0100
commit6f5881e0bb7468a4ff1a52bdbd40cc36102639fd (patch)
treec52d3dbab5b3e8a91a33eef3c5e9a7ab811d42b6 /src/libserver
parent76a470911b7b4dfe5bc6f12c91e8633e459d7735 (diff)
downloadrspamd-6f5881e0bb7468a4ff1a52bdbd40cc36102639fd.tar.gz
rspamd-6f5881e0bb7468a4ff1a52bdbd40cc36102639fd.zip
[Minor] Escape \uFFFD in the sources
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/html/html_entities.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/html/html_entities.cxx b/src/libserver/html/html_entities.cxx
index 912da6e58..8a3ff61da 100644
--- a/src/libserver/html/html_entities.cxx
+++ b/src/libserver/html/html_entities.cxx
@@ -2605,10 +2605,10 @@ TEST_SUITE("html entities") {
{"FOO&#ZOO", "FOO&#ZOO"},
{"FOO&#xBAR", "FOOºR"},
{"FOO&#x41BAR", "FOO䆺R"},
- {"FOO&#x0000;ZOO", "FOO�ZOO"},
+ {"FOO&#x0000;ZOO", "FOO\uFFFDZOO"},
{"FOO&#x0081;ZOO", "FOO\u0081ZOO"},
- {"FOO&#xD800;ZOO", "FOO�ZOO"},
- {"FOO&#xFFFFFF;ZOO", "FOO�ZOO"},
+ {"FOO&#xD800;ZOO", "FOO\uFFFDZOO"},
+ {"FOO&#xFFFFFF;ZOO", "FOO\uFFFDZOO"},
{"ZZ&pound_id=23", "ZZ£_id=23"},
{"ZZ&prod_id=23", "ZZ&prod_id=23"},
{"ZZ&gt", "ZZ>"},