[Pkg-owncloud-commits] [owncloud] 136/394: Also reject names with \ in the name
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:47 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 05db74e7dbf413d43e9cd4d0e41b3a1fbb9df0a8
Author: Bart Visscher <bartv at thisnet.nl>
Date: Fri Nov 16 12:16:23 2012 +0100
Also reject names with \ in the name
fixes issues #435 and #437
---
apps/files/js/files.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index b64840f..9c71a59 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -510,8 +510,8 @@ $(document).ready(function() {
$(this).append(input);
input.focus();
input.change(function(){
- if(type != 'web' && $(this).val().indexOf('/')!=-1){
- $('#notification').text(t('files','Invalid name, \'/\' is not allowed.'));
+ if(type != 'web' && ($(this).val().indexOf('/')!=-1 || $(this).val().indexOf('\\')!=-1)) {
+ $('#notification').text(t('files', 'Invalid name, \'/\' or \'\\\' is not allowed.'));
$('#notification').fadeIn();
return;
} else if( type == 'folder' && $('#dir').val() == '/' && $(this).val() == 'Shared') {
--
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