diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-06 15:15:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-06 15:15:01 +0100 |
commit | 099ae44013e09d869ec24046ecadbf55038bb878 (patch) | |
tree | 797417ac6ceb735e0fe1199de97dbce2c1d470ff /src/libserver/css | |
parent | 6105080a1ee8adec47f4dd0a8365ff9125b8c2ee (diff) | |
download | rspamd-099ae44013e09d869ec24046ecadbf55038bb878.tar.gz rspamd-099ae44013e09d869ec24046ecadbf55038bb878.zip |
[Minor] Css: Fix parsing of the url tokens
Diffstat (limited to 'src/libserver/css')
-rw-r--r-- | src/libserver/css/css_tokeniser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/css/css_tokeniser.cxx b/src/libserver/css/css_tokeniser.cxx index f4180b761..d6ddc2a5f 100644 --- a/src/libserver/css/css_tokeniser.cxx +++ b/src/libserver/css/css_tokeniser.cxx @@ -249,7 +249,7 @@ auto css_tokeniser::consume_ident(bool allow_number) -> struct css_parser_token j++; } - if (input.size() > 3 && input.substr(0, 3) == "url") { + if (input.size() - offset > 3 && input.substr(offset, 3) == "url") { if (input[j] == '"' || input[j] == '\'') { /* Function token */ auto ret = maybe_escape_sv(i, |