| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 32 | public function replaceInternalHtmlLinks($usingUrlParam=false) |
||
| 33 | { |
||
| 34 | // replace href & src links where they DO NOT start with https?:... or //... |
||
| 35 | $this->html = preg_replace_callback('/(src|href)=(["\'])(?!((["\'])?https?:|(["\'])?\/\/))(.*?)\2/i', function ($matches) use ($usingUrlParam) { |
||
| 36 | return $matches[1] . '=' . $matches[2] |
||
| 37 | . rtrim($this->proxyPath, '/') |
||
| 38 | . $this->hadleProxyURL('/' . ltrim($usingUrlParam ? htmlspecialchars_decode($matches[6]) : $matches[6], '/')) |
||
| 39 | . $matches[2]; |
||
| 40 | }, $this->html); |
||
| 41 | } |
||
| 42 | |||
| 61 |