diff options
author | Martin <martin.mattel@diemattels.at> | 2015-09-21 14:09:28 +0200 |
---|---|---|
committer | root <martin.mattel@diemattels.at> | 2015-09-22 17:53:15 +0200 |
commit | 491250320a6b19f9a7d546598e97eac1e90f78f7 (patch) | |
tree | 1021d069627a22699713f5c75eba17dac97f734c /lib/private/util.php | |
parent | 7222e5fb4d8e165733fac4ac9c85e471c0d34fb7 (diff) | |
download | nextcloud-server-491250320a6b19f9a7d546598e97eac1e90f78f7.tar.gz nextcloud-server-491250320a6b19f9a7d546598e97eac1e90f78f7.zip |
Replaces if ($file === '.' || $file === '..') by if(\OC\Files\Filesystem::isIgnoredDir($file)). Eases to find where this operation is used.
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index eb1de5be5a4..667d358655f 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1433,7 +1433,7 @@ class OC_Util { if ($trimmed === '') { return false; } - if ($trimmed === '.' || $trimmed === '..') { + if (\OC\Files\Filesystem::isIgnoredDir($trimmed)) { return false; } foreach (str_split($trimmed) as $char) { |