refactor: lint fix

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/803/head
Varun Patil 2023-08-30 13:27:43 -07:00
parent 4122f592b6
commit b4873776a3
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class PublicController extends AuthPublicShareController
$foldersPath = $this->config->getUserValue($user->getUID(), Application::APPNAME, 'foldersPath', null) ?: '/';
// Sanitize folders path ensuring leading and trailing slashes
$foldersPath = Util::sanitizePath('/' . $foldersPath . '/');
$foldersPath = Util::sanitizePath('/'.$foldersPath.'/');
// Check if relPath starts with foldersPath
if (0 !== strpos($relPath, $foldersPath)) {