diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-08 12:03:28 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-08 12:03:28 +0100 |
commit | 9bdc43e1fcb4576c82fa03fd59deb2aa28282aba (patch) | |
tree | d3efe8e7204f73eecbdf50f387c9e767fd9b4e86 /apps/files/ajax/rename.php | |
parent | 5ef9d96d10c2984f0a5c19f299312492387b5aec (diff) | |
download | nextcloud-server-9bdc43e1fcb4576c82fa03fd59deb2aa28282aba.tar.gz nextcloud-server-9bdc43e1fcb4576c82fa03fd59deb2aa28282aba.zip |
Files: explicitly define
Diffstat (limited to 'apps/files/ajax/rename.php')
-rw-r--r-- | apps/files/ajax/rename.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php index 2364e477d93..9fd2ce3ad4b 100644 --- a/apps/files/ajax/rename.php +++ b/apps/files/ajax/rename.php @@ -11,6 +11,8 @@ $dir = stripslashes($_GET["dir"]); $file = stripslashes($_GET["file"]); $newname = stripslashes($_GET["newname"]); +$l = OC_L10N::get('files'); + if ( $newname !== '.' and ($dir != '' || $file != 'Shared') and $newname !== '.') { $targetFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $newname); $sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file); |