diff options
Diffstat (limited to 'lib/private/Files/Filesystem.php')
-rw-r--r-- | lib/private/Files/Filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 2eab4c58a0c..5f7c0c403db 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -451,7 +451,7 @@ class Filesystem { if (!$path || $path[0] !== '/') { $path = '/' . $path; } - if (strpos($path, '/../') !== false || strrchr($path, '/') === '/..') { + if (str_contains($path, '/../') || strrchr($path, '/') === '/..') { return false; } return true; |