Skip to content

Commit

Permalink
Fix notice and wrong Regex (#781)
Browse files Browse the repository at this point in the history
* Fix

* Update cdn.cls.php

* Changed the rule

* remove extra condition
  • Loading branch information
timotei-litespeed authored Dec 10, 2024
1 parent 448b6fd commit f5f6a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdn.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private function _replace_inline_css()
* @see #685485
* @since 3.0
*/
preg_match_all('/url\((?![\'"]?data)[\'"]?([^\)\'"\\\]+)[\'"]?\)/i', $this->content, $matches);
preg_match_all('/url\((?![\'"]?data)[\'"]?(.+?)[\'"]?\)/i', $this->content, $matches);
foreach ($matches[1] as $k => $url) {
$url = str_replace(array(' ', '\t', '\n', '\r', '\0', '\x0B', '"', "'", '"', '''), '', $url);

Expand Down

0 comments on commit f5f6a79

Please sign in to comment.