Commit ffcd137d authored by ale's avatar ale
Browse files

Fix typo (unknown variable used)

parent 7bffbbdd
Pipeline #32092 passed with stage
in 7 seconds
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment