[LON-CAPA-cvs] cvs: loncom /cgi userstatus.pl
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 02 Jun 2006 21:36:21 -0000
albertel Fri Jun 2 17:36:21 2006 EDT
Modified files:
/loncom/cgi userstatus.pl
Log:
- session environment is now escaped
Index: loncom/cgi/userstatus.pl
diff -u loncom/cgi/userstatus.pl:1.12 loncom/cgi/userstatus.pl:1.13
--- loncom/cgi/userstatus.pl:1.12 Thu Aug 25 15:43:40 2005
+++ loncom/cgi/userstatus.pl Fri Jun 2 17:36:21 2006
@@ -1,7 +1,7 @@
#!/usr/bin/perl
$|=1;
# User Status
-# $Id: userstatus.pl,v 1.12 2005/08/25 19:43:40 albertel Exp $
+# $Id: userstatus.pl,v 1.13 2006/06/02 21:36:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -30,7 +30,7 @@
use strict;
use lib '/home/httpd/lib/perl/';
use LONCAPA::Configuration;
-
+use LONCAPA;
use HTTP::Headers;
use IO::File;
@@ -101,6 +101,8 @@
while (my $line=<$fh>) {
chomp($line);
my ($name,$value)=split(/\=/,$line);
+ $name = &unescape($name);
+ $value = &unescape($value);
$userinfo{$name}=$value;
}
$fh->close();