We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a419b8 + 443c53d commit 185b666Copy full SHA for 185b666
bin/dwpage.php
@@ -217,6 +217,10 @@ protected function commandCheckout($wiki_id, $localfile)
217
$localfile = getcwd() . '/' . PhpString::basename($wiki_fn);
218
}
219
220
+ if (is_dir($localfile)) {
221
+ $this->fatal("Working file $localfile cannot be a directory");
222
+ }
223
+
224
if (!file_exists(dirname($localfile))) {
225
$this->fatal("Directory " . dirname($localfile) . " does not exist");
226
0 commit comments