[Pkg-owncloud-commits] [owncloud] 273/394: fix wrong return value for isFileNameValid()

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:24 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 f31d37cb10f15bc881eaa478bb6b44c8e5cc226f
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Mon Jan 7 17:32:08 2013 +0100

    fix wrong return value for isFileNameValid()
---
 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 beaab7a..ac75135 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -44,11 +44,11 @@ Files={
 			if (name.indexOf(invalid_characters[i]) != -1) {
 				$('#notification').text(t('files', "Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed."));
 				$('#notification').fadeIn();
-				return true;
+				return false;
 			}
 		}
 		$('#notification').fadeOut();
-		return false;
+		return true;
 	}
 };
 $(document).ready(function() {

-- 
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