diff options
author | Robin Appelman <robin@icewind.nl> | 2017-02-10 18:04:59 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-02-10 18:04:59 +0100 |
commit | 5acebb911be464c636fc7844f3048b65f9e6fefe (patch) | |
tree | 5152f56ec0e388de71b4b4963d19ee4fff3b712f /apps/files_external/lib/Command/Notify.php | |
parent | d9a6353bc1448aa599e27b6c70a47197c604a56a (diff) | |
download | nextcloud-server-5acebb911be464c636fc7844f3048b65f9e6fefe.tar.gz nextcloud-server-5acebb911be464c636fc7844f3048b65f9e6fefe.zip |
fix self test for non leading slash
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Command/Notify.php')
-rw-r--r-- | apps/files_external/lib/Command/Notify.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index 55d7eef5823..6bb56373d33 100644 --- a/apps/files_external/lib/Command/Notify.php +++ b/apps/files_external/lib/Command/Notify.php @@ -199,9 +199,9 @@ class Notify extends Base { $foundSubfolderChange = false; foreach ($changes as $change) { - if ($change->getPath() === '/.nc_test_file.txt') { + if ($change->getPath() === '/.nc_test_file.txt' || $change->getPath() === '.nc_test_file.txt') { $foundRootChange = true; - } else if ($change->getPath() === '/.nc_test_folder/subfile.txt') { + } else if ($change->getPath() === '/.nc_test_folder/subfile.txt' || $change->getPath() === '.nc_test_folder/subfile.txt') { $foundSubfolderChange = true; } } |