Subject: x2goserver sanitizer arg fix

From: Andrey Igoshin <[email-masked]>
Date: Mon, 18 Aug 2014 18:44:35 +0400

Package: x2goserver
Version: 4.1.0.0-0~1055~ubuntu14.04.1

x2goserver sanitizer arg fix

details:

# perl -cw Utils.pm 
Scalar value @ARGV[0] better written as $ARGV[0] at Utils.pm line 174.
Scalar value @ARGV[0] better written as $ARGV[0] at Utils.pm line 175.

patch attached.

-- 
Andrey Igoshin <[email-masked]>               Voronezh State University
sip:            [email-masked]                Network Operation Center
phone: +7 473 2281160, ext. 2020         Voronezh, Russia

--- Utils.pm.CU	2014-08-18 17:58:47.000000000 +0400
+++ Utils.pm	2014-08-18 18:36:17.874084873 +0400
@@ -171,8 +171,8 @@
 }
 
 sub check_x2go_sessionid {
-	if (sanitizer("x2gosid",@ARGV[0])) {
-		return sanitizer("x2gosid",@ARGV[0]);
+	if (sanitizer("x2gosid",$ARGV[0])) {
+		return sanitizer("x2gosid",$ARGV[0]);
 	} elsif (sanitizer("x2gosid",$ENV{'X2GO_SESSION'})) {
 		return sanitizer("x2gosid",$ENV{'X2GO_SESSION'});
 	} else {