Show error message to prevent adding a shared folder in the root dir fix #468
This commit is contained in:
parent
d1c0f2a739
commit
02bc440900
1 changed files with 4 additions and 0 deletions
|
@ -495,6 +495,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()) {
|
||||
|
|
Loading…
Reference in a new issue