mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* fixed plugin "You don't have rights to delete"
This commit is contained in:
parent
3fc2bef7c9
commit
7d2e522d2b
@ -194,8 +194,9 @@ class Plugins {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$file = 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