Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Noblogs
ai-mu-plugins
Commits
ffcd137d
Commit
ffcd137d
authored
May 08, 2022
by
ale
Browse files
Fix typo (unknown variable used)
parent
7bffbbdd
Pipeline
#32092
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
custom-css.php
View file @
ffcd137d
...
...
@@ -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'
,
$
safecs
s
->
sub_value
,
$matches
))
{
$this
->
sub_value
=
ai_sanitize_urls_in_css_properties
(
$matches
[
'parenthetical_content'
],
$
safecs
s
->
property
);
if
(
preg_match
(
'!^\s*(?P<url_expression>url\s*(?P<opening_paren>\(|\\0028)(?P<parenthetical_content>.*)(?P<closing_paren>\)|\\0029))(.*)$!Dis'
,
$
thi
s
->
sub_value
,
$matches
))
{
$this
->
sub_value
=
ai_sanitize_urls_in_css_properties
(
$matches
[
'parenthetical_content'
],
$
thi
s
->
property
);
// Only replace the url([...]) portion of the sub_value so we don't
// lose things like trailing commas or !important declarations.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment