fixed unreachable code in filesystem loader skips security exception (closes #17)

git-svn-id: http://svn.twig-project.org/trunk@82 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-10-20 04:45:04 +00:00
parent 4a5173151d
commit 2bb3c75450
+1 -1
View 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;
}