Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymotey committed Sep 20, 2024
1 parent 525bf17 commit b22c3bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cdn.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ private function _replace_inline_css()
$url = str_replace(array(' ', '\t', '\n', '\r', '\0', '\x0B', '"', "'", '"', '''), '', $url);

// Parse file postfix
$postfix = '.' . pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION);
$parsed_url = parse_url($url, PHP_URL_PATH);
if(is_null($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 b22c3bc

Please sign in to comment.