|
@@ 112-115 (lines=4) @@
|
| 109 |
|
|
| 110 |
|
if (preg_match('#<script[^>]*src=("|\')([^>]*)("|\')#Usmi',$tag,$source)) { |
| 111 |
|
// non-inline script |
| 112 |
|
if ($this->isremovable($tag,$this->jsremovables)) { |
| 113 |
|
$this->content = str_replace($tag,'',$this->content); |
| 114 |
|
continue; |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
$url = current(explode('?',$source[2],2)); |
| 118 |
|
$path = $this->getpath($url); |
|
@@ 152-155 (lines=4) @@
|
| 149 |
|
} |
| 150 |
|
} else { |
| 151 |
|
// Inline script |
| 152 |
|
if ($this->isremovable($tag,$this->jsremovables)) { |
| 153 |
|
$this->content = str_replace($tag,'',$this->content); |
| 154 |
|
continue; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
// unhide comments, as javascript may be wrapped in comment-tags for old times' sake |
| 158 |
|
$tag = $this->restore_comments($tag); |