mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user