Disallow import of the medium-folder
This commit is contained in:
parent
6b5e30c443
commit
2024ccaf39
@ -71,9 +71,11 @@ class Import extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Skip folders of Lychee
|
# Skip folders of Lychee
|
||||||
if ($path===LYCHEE_UPLOADS_BIG||($path . '/')===LYCHEE_UPLOADS_BIG||$path===LYCHEE_UPLOADS_THUMB||($path . '/')===LYCHEE_UPLOADS_THUMB) {
|
if ($path===LYCHEE_UPLOADS_BIG||($path . '/')===LYCHEE_UPLOADS_BIG||
|
||||||
Log::error($database, __METHOD__, __LINE__, 'Given path is a reserved path of Lychee (' . $path . ')');
|
$path===LYCHEE_UPLOADS_MEDIUM||($path . '/')===LYCHEE_UPLOADS_MEDIUM||
|
||||||
return 'Error: Given path is a reserved path of Lychee!';
|
$path===LYCHEE_UPLOADS_THUMB||($path . '/')===LYCHEE_UPLOADS_THUMB) {
|
||||||
|
Log::error($database, __METHOD__, __LINE__, 'The given path is a reserved path of Lychee (' . $path . ')');
|
||||||
|
return 'Error: Given path is a reserved path of Lychee!';
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = false;
|
$error = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user