--- loncom/auth/checkauthen.pm 2006/09/19 18:03:02 1.9 +++ loncom/auth/checkauthen.pm 2006/11/23 01:49:41 1.10 @@ -1,7 +1,7 @@ # The LearningOnline Network # checks for a cokkie to authenticate a user # -# $Id: checkauthen.pm,v 1.9 2006/09/19 18:03:02 albertel Exp $ +# $Id: checkauthen.pm,v 1.10 2006/11/23 01:49:41 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -61,8 +61,7 @@ sub handler { my $lonid=$cookies{'lonID'}; my $handle; if ($lonid) { - $handle = $lonid->value; - $handle=~s/\W//g; + $handle=&LONCAPA::clean_handle($lonid->value); $handle = $r->dir_config('lonIDsDir')."/$handle.id"; } else { $handle = $env{'user.environment'};