diff --git a/system/libs/plugins.php b/system/libs/plugins.php index 0906d277..b3a623a6 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -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;