Skip to content
Snippets Groups Projects
Commit d4ec77e0 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

Merge pull request #482 from eMerzh/fix_prevent_shared_folder

Show error message to prevent adding a shared folder in the root dir fix...
parents 54356636 02bc4409
No related branches found
No related tags found
No related merge requests found
......@@ -509,6 +509,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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment