aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/move.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-03-04 16:42:40 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2014-03-05 13:16:25 +0100
commit2e73c957e5b3ae4030e41520088fb078354ae8b1 (patch)
tree7c6243510a969fc370141f452f3e8575b09db316 /apps/files/ajax/move.php
parent79ae3c4527b492bee76b2951ca14e8259147b181 (diff)
downloadnextcloud-server-2e73c957e5b3ae4030e41520088fb078354ae8b1.tar.gz
nextcloud-server-2e73c957e5b3ae4030e41520088fb078354ae8b1.zip
don't allow to create a file or folder named 'Shared' in the root folder, also exclude all combinations of lower and upper case letters
Diffstat (limited to 'apps/files/ajax/move.php')
-rw-r--r--apps/files/ajax/move.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/move.php b/apps/files/ajax/move.php
index 93063e52eb0..04a260265c2 100644
--- a/apps/files/ajax/move.php
+++ b/apps/files/ajax/move.php
@@ -18,7 +18,7 @@ if(\OC\Files\Filesystem::file_exists($target . '/' . $file)) {
exit;
}
-if ($dir != '' || $file != 'Shared') {
+if ($target != '' || strtolower($file) != 'shared') {
$targetFile = \OC\Files\Filesystem::normalizePath($target . '/' . $file);
$sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file);
if(\OC\Files\Filesystem::rename($sourceFile, $targetFile)) {