--- loncom/interface/coursecatalog.pm 2006/10/18 14:07:47 1.10 +++ loncom/interface/coursecatalog.pm 2006/12/11 15:13:26 1.12 @@ -47,8 +47,7 @@ sub handler { my $lonidsdir=$r->dir_config('lonIDsDir'); my $handle; if ($lonid) { - $handle=$lonid->value; - $handle=~s/\W//g; + $handle=&LONCAPA::clean_handle($lonid->value); } if ((-e "$lonidsdir/$handle.id") && ($handle ne '')) { &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle);