From: fabien Date: Tue, 20 Oct 2009 04:45:04 +0000 (+0000) Subject: fixed unreachable code in filesystem loader skips security exception (closes #17) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2bb3c754504802ac049f91ea725214aede3ee915;p=konrad%2Ftwig.git 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 --- diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index c262808..8ec795b 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -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; }