Skip to content
Snippets Groups Projects
Commit ffcd137d authored by ale's avatar ale
Browse files

Fix typo (unknown variable used)

parent 7bffbbdd
No related branches found
No related tags found
No related merge requests found
Pipeline #37414 failed
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment