From 2bb3c754504802ac049f91ea725214aede3ee915 Mon Sep 17 00:00:00 2001 From: fabien Date: Tue, 20 Oct 2009 04:45:04 +0000 Subject: [PATCH] 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 --- lib/Twig/Loader/Filesystem.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; } -- 1.7.2.5