Skip to content

Commit 73c95b1

Browse files
committed
Allow web-based source files
1 parent 6d0667d commit 73c95b1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Engine/EngineBase.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,13 @@ public function convertFile($source, $destination) {
5252
}
5353

5454
// Confirm that the source exists and can be read.
55-
if (!file_exists($source)) {
55+
if (preg_match('@^https?://.{3,}@', $source)) {
56+
// Allow web-based source files.
57+
}
58+
elseif (!file_exists($source)) {
5659
throw new \ErrorException("The source file does not exist.");
5760
}
58-
if (!is_readable($source)) {
61+
elseif (!is_readable($source)) {
5962
throw new \ErrorException("The source file cannot be read.");
6063
}
6164

0 commit comments

Comments
 (0)