* fixed plugin "You don't have rights to delete"

This commit is contained in:
slawkens1 2018-01-14 09:16:24 +01:00
parent 3fc2bef7c9
commit 7d2e522d2b

View File

@ -194,8 +194,9 @@ class Plugins {
break;
}
$file = BASE . $file;
if(!is_sub_dir($file, BASE) || realpath(dirname($file)) != dirname($file)) {
$file = str_replace('\\', '/', BASE . $file);
$realpath = str_replace('\\', '/', realpath(dirname($file)));
if(!is_sub_dir($file, BASE) || $realpath != dirname($file)) {
$success = false;
self::$error = "You don't have rights to delete: " . $file;
break;