Fix managed check.

This commit is contained in:
Lars Jung 2014-07-01 20:24:10 +02:00
parent b4a1bb1218
commit d6695da97d
2 changed files with 174 additions and 1 deletions

View file

@ -144,7 +144,7 @@ class App {
public function is_managed_path($path) {
if (!is_dir($path) || strpos($path, '../') || strpos($path, '/..') || $path == '..') {
if (!is_dir($path) || strpos($path, '../') !== false || strpos($path, '/..') !== false || $path === '..') {
return false;
}