mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
fix typo
This commit is contained in:
parent
7f71ae60b0
commit
4bbbba1dc8
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ class Preview {
|
|||
$sharedfile = null;
|
||||
|
||||
if($linkedItem['item_type'] === 'folder') {
|
||||
$isvalid = \OC\File\Filesystem::isValidPath($file);
|
||||
$isvalid = \OC\Files\Filesystem::isValidPath($file);
|
||||
if(!$isvalid) {
|
||||
\OC_Response::setStatus(400); //400 Bad Request
|
||||
\OC_Log::write('core-preview', 'Passed filename is not valid, might be malicious (file:"' . $file . '";ip:"' . $_SERVER['REMOTE_ADDR'] . '")', \OC_Log::WARN);
|
||||
|
|
|
|||
Loading…
Reference in a new issue