8000 merged branch francisbesset/fixed_refresh_template (PR #2725) · symfony/symfony@2e8fe92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e8fe92

Browse files
committed
merged branch francisbesset/fixed_refresh_template (PR #2725)
Commits ------- 17dc605 [FrameworkBundle] Checks that the template is readable before checking its modification time Discussion ---------- Fixed bug to refresh templates deleted Checks that the template is readable before checking its modification time.
2 parents 7b1dda8 + 17dc605 commit 2e8fe92

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