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

This commit is contained in:
slawkens1 2018-01-14 09:16:24 +01:00
parent 16bcb70863
commit 40981daf33

View File

@ -273,8 +273,9 @@ class Plugins {
break;
}
$file = str_replace('/', '\\', 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;