aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-12 11:05:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-12 11:06:30 +0100
commit0adcee676505367509681d03ed4e7d611f6de6a0 (patch)
treec8e84928d8d0977fa0ac8153dd9dfaf5152f4878
parent33eca00f5e567d763281ec8386366067987b1583 (diff)
downloadrspamd-0adcee676505367509681d03ed4e7d611f6de6a0.tar.gz
rspamd-0adcee676505367509681d03ed4e7d611f6de6a0.zip
[Minor] Css: Fix '\v' and '\f' handling
-rw-r--r--src/libserver/css/css_parser.cxx2
-rw-r--r--src/libserver/css/css_tokeniser.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/css/css_parser.cxx b/src/libserver/css/css_parser.cxx
index 9f93a7e25..774a65cfc 100644
--- a/src/libserver/css/css_parser.cxx
+++ b/src/libserver/css/css_parser.cxx
@@ -837,6 +837,8 @@ TEST_SUITE("css parser") {
"tt{color:#1e3482}",
"tt{unicode-range: u+0049-u+004a,u+0020;}",
"@import url(https://fonts.googleapis.com/css?family=arial:300,400,7000;",
+ "tt{color:black;\v}",
+ "tt{color:black;\f}",
};
rspamd_mempool_t *pool = rspamd_mempool_new(rspamd_mempool_suggest_size(),
diff --git a/src/libserver/css/css_tokeniser.cxx b/src/libserver/css/css_tokeniser.cxx
index d07b017a3..0b1467d8f 100644
--- a/src/libserver/css/css_tokeniser.cxx
+++ b/src/libserver/css/css_tokeniser.cxx
@@ -536,7 +536,7 @@ auto css_tokeniser::next_token(void) -> struct css_parser_token
case '\t':
case '\n':
case '\r':
- case '\v': {
+ case '\f': {
/* Consume as much space as we can */
while (i < input.size() && g_ascii_isspace(input[i])) {
i++;