You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
line 31 of cssurlrewrite.php has the following line:
fwrite($output, preg_replace_callback('/url(\s_'"['"]?\s_)/i', 'replace_css_url', $css));
unless I'm mistaken the line should be like this:
fwrite($output, preg_replace_callback('/url(\s_['"]?(.?)['"]?\s)/i', 'replace_css_url', $css));
I've added a '?' here: '/url(\s*['"]?
if not anything in the css that is:
url(path/to/img/img.ext)
will not work.
at least it didn't in my tests... the preg would not find them.
not sure what your 'i' does at the end of expression either. removing it didn't change any of my code.
The text was updated successfully, but these errors were encountered:
line 31 of cssurlrewrite.php has the following line:
fwrite($output, preg_replace_callback('/url(\s_'"['"]?\s_)/i', 'replace_css_url', $css));
unless I'm mistaken the line should be like this:
fwrite($output, preg_replace_callback('/url(\s_['"]?(.?)['"]?\s)/i', 'replace_css_url', $css));
I've added a '?' here: '/url(\s*['"]?
if not anything in the css that is:
url(path/to/img/img.ext)
will not work.
at least it didn't in my tests... the preg would not find them.
not sure what your 'i' does at the end of expression either. removing it didn't change any of my code.
The text was updated successfully, but these errors were encountered: