Subject: Bug#664: [PATCH] Patch for Bug #664

From: Peter Ludikovsky <[email-masked]>
Date: Fri, 5 Dec 2014 13:29:27 +0100

---
 X2Go/Server/DB/SQLite3.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/X2Go/Server/DB/SQLite3.pm b/X2Go/Server/DB/SQLite3.pm
index d693809..dd4e403 100644
--- a/X2Go/Server/DB/SQLite3.pm
+++ b/X2Go/Server/DB/SQLite3.pm
@@ -656,6 +656,7 @@ sub check_user
 	# session id looks like someuser-51-1304005895_stDgnome-session_dp24
 	# during DB insertsession it only looks like someuser-51-1304005895
 	my $user = "$sid";
+	$realuser =~ s/\\//;
 	$user =~ s/($realuser-[0-9]{2,}-[0-9]{10,}_st(D|R).*|.*-[0-9]{2,}-[0-9]{10,}_stS(0|1)XSHAD$realuser.*)/$realuser/;
 	$user eq $realuser or die "$realuser is not authorized";
 }
-- 
1.9.3