[X2Go-Commits] [x2goserver] 07/08: Allow length of username up to 48 characters (was: 32 characters). (Fixes: #574).

git-admin at x2go.org git-admin at x2go.org
Wed Aug 20 10:18:36 CEST 2014


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

x2go pushed a commit to branch master
in repository x2goserver.

commit 010773518c03b87f6d085b5f30888552c1edc847
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Aug 20 10:06:48 2014 +0200

    Allow length of username up to 48 characters (was: 32 characters). (Fixes: #574).
---
 X2Go/Utils.pm    |    4 ++--
 debian/changelog |    2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/X2Go/Utils.pm b/X2Go/Utils.pm
index 32f106f..61b77d3 100644
--- a/X2Go/Utils.pm
+++ b/X2Go/Utils.pm
@@ -122,9 +122,9 @@ sub sanitizer {
 		} else {return 0;} 
 	} elsif ($type eq "pnixusername") {
 		$string =~ s/[^a-zA-Z0-9\_\-\.]//g;
-		if ($string =~ /^([a-zA-Z\_][a-zA-Z0-9\_\-\.]{0,31}[\$]?)$/) {
+		if ($string =~ /^([a-zA-Z\_][a-zA-Z0-9\_\-\.]{0,47}[\$]?)$/) {
 			$string = $1;
-			if ((length($1) > 0) and (length($1) < 32)){
+			if ((length($1) > 0) and (length($1) < 48)){
 				return $string;
 			} else {return 0;}
 		} else {return 0;}
diff --git a/debian/changelog b/debian/changelog
index 59ccd6b..1f59249 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -193,6 +193,8 @@ x2goserver (4.0.1.16-0x2go1) UNRELEASED; urgency=low
     - Allow email addresses as login usernames. (Fixes: #573).
     - Abort session startup if env var $USER or $SSH_CLIENT are not set.
       (Fixes: #558).
+    - Allow length of username up to 48 characters (was: 32 characters). (Fixes:
+      #574).
   * debian/control, x2goserver.spec:
     + Update versioned D: x2goagent (>= 3.5.0.25). This assures that X2Go
       works with poly-instantiated /tmp directories.

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list