Merge pull request #482 from eMerzh/fix_prevent_shared_folder

Show error message to prevent adding a shared folder in the root dir fix...
This commit is contained in:
blizzz 2012-11-22 02:40:23 -08:00
commit d4ec77e08b
1 changed files with 4 additions and 0 deletions

View File

@ -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()) {