diff --git a/src/Api.php b/src/Api.php index c1c7097..f22d1f6 100644 --- a/src/Api.php +++ b/src/Api.php @@ -90,6 +90,9 @@ public function run(string $path): void $topModTime = 0; if ($data !== []) { // 3. foreach ($data[$format] ?? [] as $file) { + if (preg_match('~^(?:https?:)//~', $file)) { // do not accept URL + continue; + } $filePath = $this->basePath . '/' . trim($file, '/'); if (is_file($filePath) === true) { $modificationTime = (int) filemtime($filePath);