8000 [FrameworkBundle] Checks that the template is readable before checkin… · symfony/symfony@17dc605 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17dc605

Browse files
committed
[FrameworkBundle] Checks that the template is readable before checking its modification time
1 parent 7b1dda8 commit 17dc605

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public function isFresh(TemplateReferenceInterface $template, $time)
6565
return false;
6666
}
6767

68+
if (!is_readable((string) $storage)) {
69+
return false;
70+
}
71+
6872
return filemtime((string) $storage) < $time;
6973
}
7074
}

0 commit comments

Comments
 (0)
0