mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Merge pull request #402 from gms8994/patch-1
Checks to see if file_exists *and* it's an actual file.
This commit is contained in:
@@ -26,7 +26,8 @@ public function serves($sitePath, $siteName, $uri)
|
||||
*/
|
||||
public function isStaticFile($sitePath, $siteName, $uri)
|
||||
{
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)) {
|
||||
if (file_exists($staticFilePath = $sitePath.'/public'.$uri)
|
||||
&& is_file($staticFilePath)) {
|
||||
return $staticFilePath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user