[Pkg-owncloud-commits] [owncloud] 129/394: Show error message to prevent adding a shared folder in the root dir fix #468

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:44 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit dceb2b7c32413806680158ebe22db78a216224f5
Author: Brice Maron <brice at bmaron.net>
Date:   Fri Nov 16 14:59:14 2012 +0000

    Show error message to prevent adding a shared folder in the root dir fix #468
---
 apps/files/js/files.js |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index d454a74..b64840f 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()) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list