fixed unreachable code in filesystem loader skips security exception (closes #17)
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Tue, 20 Oct 2009 04:45:04 +0000 (04:45 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Tue, 20 Oct 2009 04:45:04 +0000 (04:45 +0000)
git-svn-id: http://svn.twig-project.org/trunk@82 93ef8e89-cb99-4229-a87c-7fa0fa45744b

lib/Twig/Loader/Filesystem.php

index c262808..8ec795b 100644 (file)
@@ -80,7 +80,7 @@ class Twig_Loader_Filesystem extends Twig_Loader
     {
       $file = realpath($path.DIRECTORY_SEPARATOR.$name);
 
-      if (0 !== strpos($file, $path))
+      if (false === $file)
       {
         continue;
       }