summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-11-16 14:59:14 +0000
committerThomas Mueller <thomas.mueller@tmit.eu>2012-11-22 22:05:41 +0100
commitdceb2b7c32413806680158ebe22db78a216224f5 (patch)
tree60e151cb8e2df7b56b3f57d7e5119b83330294ec /apps
parent270d1199a63429aa3d995607dc78922da3e56d7c (diff)
downloadnextcloud-server-dceb2b7c32413806680158ebe22db78a216224f5.tar.gz
nextcloud-server-dceb2b7c32413806680158ebe22db78a216224f5.zip
Show error message to prevent adding a shared folder in the root dir fix #468
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index d454a74f06e..b64840f439f 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -514,6 +514,10 @@ $(document).ready(function() {
$('#notification').text(t('files','Invalid name, \'/\' is not allowed.'));
$('#notification').fadeIn();
return;
+ } else if( type == 'folder' && $('#dir').val() == '/' && $(this).val() == 'Shared') {
+ $('#notification').text(t('files','Invalid folder name. Usage of "Shared" is reserved by Owncloud'));
+ $('#notification').fadeIn();
+ return;
}
var name = getUniqueName($(this).val());
if (name != $(this).val()) {