summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-04-09 13:54:01 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-05-12 11:47:22 +0200
commit33b31931bddb6932c35f2ab9ec6bce9ea723509a (patch)
treef2baba70b580df4cf57e0d22e92fa718c7ee7edf /apps/files
parentb393c91a96aeb1346add8e0cb5a62747b07379f0 (diff)
downloadnextcloud-server-33b31931bddb6932c35f2ab9ec6bce9ea723509a.tar.gz
nextcloud-server-33b31931bddb6932c35f2ab9ec6bce9ea723509a.zip
string comparision
Diffstat (limited to 'apps/files')
-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 50bbe54bd25..a0785f52df2 100644
--- a/apps/files/ajax/rename.php
+++ b/apps/files/ajax/rename.php
@@ -13,7 +13,7 @@ $newname = stripslashes($_GET["newname"]);
$l = OC_L10N::get('files');
-if ( $newname !== '.' and ($dir != '/' || $file != 'Shared') and ($dir !== '/' || $newname !== 'Shared') ) {
+if ( $newname !== '.' and ($dir !== '/' || $file !== 'Shared') and ($dir !== '/' || $newname !== 'Shared') ) {
$targetFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $newname);
$sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file);
if(\OC\Files\Filesystem::rename($sourceFile, $targetFile)) {