From ffcd137d92be698d33e13bafb73ecacce7e634ed Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 8 May 2022 20:48:56 +0100 Subject: [PATCH] Fix typo (unknown variable used) --- custom-css.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom-css.php b/custom-css.php index b8821c5..a1eb727 100644 --- a/custom-css.php +++ b/custom-css.php @@ -45,8 +45,8 @@ function ai_safecss_class() { public function subvalue() { $this->sub_value = trim($this->sub_value); - if (preg_match('!^\s*(?P<url_expression>url\s*(?P<opening_paren>\(|\\0028)(?P<parenthetical_content>.*)(?P<closing_paren>\)|\\0029))(.*)$!Dis', $safecss->sub_value, $matches)) { - $this->sub_value = ai_sanitize_urls_in_css_properties($matches['parenthetical_content'], $safecss->property); + if (preg_match('!^\s*(?P<url_expression>url\s*(?P<opening_paren>\(|\\0028)(?P<parenthetical_content>.*)(?P<closing_paren>\)|\\0029))(.*)$!Dis', $this->sub_value, $matches)) { + $this->sub_value = ai_sanitize_urls_in_css_properties($matches['parenthetical_content'], $this->property); // Only replace the url([...]) portion of the sub_value so we don't // lose things like trailing commas or !important declarations. -- GitLab