aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/css/css_tokeniser.cxx2
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,