فهرست منبع

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.
Fabien Potencier 13 سال پیش
والد
کامیت
2e8fe92fa5
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php

+ 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;
     }
 }