|
|
|
@ -600,9 +600,10 @@ Class DirScanner {
@@ -600,9 +600,10 @@ Class DirScanner {
|
|
|
|
|
|
|
|
|
|
if (!empty($matches)) { |
|
|
|
|
foreach ($matches as $url) { |
|
|
|
|
if (preg_match('/^http(s)?:\/\//i', $url)) {continue;} |
|
|
|
|
if (preg_match('/^http(s)?:\/\//i', $url) || preg_match('/^\//i', $url)) {continue;} |
|
|
|
|
|
|
|
|
|
$src_realpath = !preg_match('/^\.\//', $url) ? "{$pathinfo['dirname']}/{$url}" : "{$pathinfo['dirname']}/" . preg_replace('/^\.\//', '', $url); |
|
|
|
|
|
|
|
|
|
$src_realpath = "{$pathinfo['dirname']}/{$url}"; |
|
|
|
|
if (file_exists($src_realpath)) { |
|
|
|
|
$id = $this->getId($src_realpath); |
|
|
|
|
$fp = fopen($src_realpath, 'r'); |
|
|
|
|