--- loncom/interface/loncss.pm 2006/09/27 22:48:42 1.5 +++ loncom/interface/loncss.pm 2006/11/27 16:47:16 1.6 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # gerenates a lon-capa CSS response # -# $Id: loncss.pm,v 1.5 2006/09/27 22:48:42 albertel Exp $ +# $Id: loncss.pm,v 1.6 2006/11/27 16:47:16 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -33,6 +33,7 @@ use Apache::loncommon; use Apache::Constants qw(:common); use POSIX qw(strftime); use CGI::Cookie(); +use LONCAPA; sub handler { my ($r) = @_; @@ -53,8 +54,7 @@ sub handler { my $handle; if ($cookies{'lonID'}) { - $handle=$cookies{'lonID'}->value; - $handle=~s/\W//g; + $handle=&LONCAPA::clean_handle($cookies{'lonID'}->value); } if ($handle ne ''