Skip to content

Commit

Permalink
Remove deprecated notice (#747)
Browse files Browse the repository at this point in the history
* Fix

* Review change

---------

Co-authored-by: Timotei <[email protected]>
  • Loading branch information
timotei-litespeed and Tymotey authored Sep 20, 2024
1 parent 137e347 commit 99c228a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cdn.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ private function _replace_inline_css()
$url = str_replace(array(' ', '\t', '\n', '\r', '\0', '\x0B', '"', "'", '&quot;', '&#039;'), '', $url);

// Parse file postfix
$postfix = '.' . pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION);
$parsed_url = parse_url($url, PHP_URL_PATH);
if (!$parsed_url) {
continue;
}

$postfix = '.' . pathinfo($parsed_url, PATHINFO_EXTENSION);
if (array_key_exists($postfix, $this->_cfg_cdn_mapping)) {
Debug2::debug2('[CDN] matched file_type ' . $postfix . ' : ' . $url);
if (!($url2 = $this->rewrite($url, Base::CDN_MAPPING_FILETYPE, $postfix))) {
Expand Down

0 comments on commit 99c228a

Please sign in to comment.