[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 24 Jan 2007 19:24:34 -0000
albertel Wed Jan 24 14:24:34 2007 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- clean user input
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.222 loncom/homework/bridgetask.pm:1.223
--- loncom/homework/bridgetask.pm:1.222 Tue Jan 23 00:02:16 2007
+++ loncom/homework/bridgetask.pm Wed Jan 24 14:24:33 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.222 2007/01/23 05:02:16 albertel Exp $
+# $Id: bridgetask.pm,v 1.223 2007/01/24 19:24:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -868,8 +868,8 @@
my ($symb,$cid)=&Apache::lonnet::whichuser();
my $cnum = $env{'course.'.$cid.'.num'};
my $cdom = $env{'course.'.$cid.'.domain'};
- my $uname = $env{'form.gradinguser'};
- my $udom = $env{'form.gradingdomain'};
+ my $uname = &clean_username($env{'form.gradinguser'});
+ my $udom = &clean_domain($env{'form.gradingdomain'});
my $gradingkey=&encode_queue_key($symb,$udom,$uname);