mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
* fixed plugin "You don't have rights to delete"
This commit is contained in:
parent
16bcb70863
commit
40981daf33
@ -273,8 +273,9 @@ class Plugins {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = str_replace('/', '\\', BASE . $file);
|
$file = str_replace('\\', '/', BASE . $file);
|
||||||
if(!is_sub_dir($file, BASE) || realpath(dirname($file)) != dirname($file)) {
|
$realpath = str_replace('\\', '/', realpath(dirname($file)));
|
||||||
|
if(!is_sub_dir($file, BASE) || $realpath != dirname($file)) {
|
||||||
$success = false;
|
$success = false;
|
||||||
self::$error = "You don't have rights to delete: " . $file;
|
self::$error = "You don't have rights to delete: " . $file;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user