Browse Source

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

Francis Besset 13 years ago
parent
commit
17dc605ca0

+ 4 - 0
src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php

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