summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/rename.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-07 00:16:10 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-07 00:16:10 +0100
commite8d08d4930fae31a665c679b5ac1a147859eb099 (patch)
tree426671882f753d0fea8f80c786bdd6892d57cdb5 /apps/files/ajax/rename.php
parent1137723b2a46c37d61e7f501694c73562b21ef74 (diff)
parent0b007235b99fa8d66cdb8ca917fe2f45dd8e4edc (diff)
downloadnextcloud-server-e8d08d4930fae31a665c679b5ac1a147859eb099.tar.gz
nextcloud-server-e8d08d4930fae31a665c679b5ac1a147859eb099.zip
merge master into filesystem
Diffstat (limited to 'apps/files/ajax/rename.php')
-rw-r--r--apps/files/ajax/rename.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php
index 470ee635a2a..b62f61e2b67 100644
--- a/apps/files/ajax/rename.php
+++ b/apps/files/ajax/rename.php
@@ -11,7 +11,7 @@ $dir = stripslashes($_GET["dir"]);
$file = stripslashes($_GET["file"]);
$newname = stripslashes($_GET["newname"]);
-if (($dir != '' || $file != 'Shared')) {
+if (($dir != '' || $file != 'Shared') and $newname !== '.') {
$targetFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $newname);
$sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file);
if(\OC\Files\Filesystem::rename($sourceFile, $targetFile)) {