[FrameworkBundle] Checks that the template is readable before checking its modification time

This commit is contained in:
Francis Besset 2011-11-26 13:28:35 +01:00
parent 7b1dda84b9
commit 17dc605ca0

View File

@ -65,6 +65,10 @@ class FilesystemLoader implements LoaderInterface
return false;
}
if (!is_readable((string) $storage)) {
return false;
}
return filemtime((string) $storage) < $time;
}
}