Skip to content

Commit ca4f78d

Browse files
authored
Merge pull request #402 from gms8994/patch-1
Checks to see if file_exists *and* it's an actual file.
2 parents ec05c21 + 9f70e81 commit ca4f78d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/drivers/LaravelValetDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public function serves($sitePath, $siteName, $uri)
2626
*/
2727
public function isStaticFile($sitePath, $siteName, $uri)
2828
{
29-
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)) {
29+
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)
30+
&& is_file($staticFilePath)) {
3031
return $staticFilePath;
3132
}
3233

0 commit comments

Comments
 (0)