| Conditions | 2 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 43 | public function replaceInternalCssLinks($usingUrlParam=false) |
||
| 44 | { |
||
| 45 | // replace url() links where they DO NOT start with https?:... or //... |
||
| 46 | $this->html = preg_replace_callback('/url\((["\'])?(?!((["\'])?https?:|(["\'])?\/\/))(.*?)(["\'])?\)/i', function ($matches) use ($usingUrlParam) { |
||
| 47 | return 'url(' . $matches[1] . rtrim($this->proxyPath, '/') .'/'. ltrim($usingUrlParam ? $this->hadleProxyURL(htmlspecialchars_decode($matches[5])) : $matches[5], '/') . $matches[1] . ')'; |
||
| 48 | }, $this->html); |
||
| 49 | } |
||
| 50 | |||
| 61 |