[X2Go-Commits] x2goserver.git - build-baikal (branch) updated: 3.0.99.10-28-gb4684dd

X2Go dev team git-admin at x2go.org
Fri Jan 3 18:04:41 CET 2014


The branch, build-baikal has been updated
       via  b4684ddfafa899ff10de734b9b0957dcd38909c2 (commit)
      from  305f7e897420aa9b0e151ffd37b7e1dd62def9e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                    |    1 -
 x2goserver/lib/x2gosqlitewrapper.pl |   18 ++----------------
 2 files changed, 2 insertions(+), 17 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 4c36ff3..56dde28 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,7 +37,6 @@ x2goserver (3.1.0.0-0~x2go1) UNRELEASED; urgency=low
       /tmp. Use ENV{'TMP'} instead, unless it is empty. Then use /tmp.
     - Place quotations where appropriate into shell scripts.
     - Fix call to x2goterminate-desktopsharing in x2goruncommand.
-    - Tolerate user names containing "-" characters (SQLite DB backend).
   * Let x2goserver package suggest x2goserver-fmbindings.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 01 Feb 2012 13:45:00 +0100
diff --git a/x2goserver/lib/x2gosqlitewrapper.pl b/x2goserver/lib/x2gosqlitewrapper.pl
index c09f3fc..ac8a7c6 100755
--- a/x2goserver/lib/x2gosqlitewrapper.pl
+++ b/x2goserver/lib/x2gosqlitewrapper.pl
@@ -322,26 +322,12 @@ sub checkroot
 sub check_user
 {
 	my $sid=shift or die "argument \"session_id\" missed";
-	# session id looks like someuser-51-1304005895_stDgnome-session_dp24
-	$sid = standardize_sid($sid);
 	return if $realuser eq "root";
-	# pass $sid backwards so that we can tolerate "-" chars in user names
-	my ($f4, $f3, $f2, @user) = reverse(split('-', $sid,));
-	my $user = join('-', reverse(@user));
+	# session id looks like someuser-51-1304005895_stDgnome-session_dp24
+	my ( $user, $rest ) = split('-', $sid, 2);
 	$user eq $realuser or die "$realuser is not authorized (should be $user)";
 }
 
-sub standardize_sid
-{
-	my $sid=shift;
-	my @sid_fields = split('-', $sid);
-	while (@sid_fields <= 4)
-	{
-		push(@sid_fields, ('DUMMY'));
-	}
-	return join('-', @sid_fields);
-}
-
 sub fetchrow_printall_array
 {
 	# print all arrays separated by the pipe symbol


hooks/post-receive
-- 
x2goserver.git (X2Go Server)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2goserver.git" (X2Go Server).




More information about the x2go-commits mailing list