--- loncom/lonencurl.pm 2006/07/14 20:20:52 1.2 +++ loncom/lonencurl.pm 2006/12/05 02:55:56 1.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for encrypted filenames # -# $Id: lonencurl.pm,v 1.2 2006/07/14 20:20:52 albertel Exp $ +# $Id: lonencurl.pm,v 1.3 2006/12/05 02:55:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,8 +40,7 @@ sub handler { my $lonid=$cookies{'lonID'}; my $cookie; if ($lonid) { - my $handle=$lonid->value; - $handle=~s/\W//g; + my $handle=&LONCAPA::clean_handle($lonid->value); my $lonidsdir=$r->dir_config('lonIDsDir'); $env{'request.enc'}=1; if ((-e "$lonidsdir/$handle.id") && ($handle ne '')) {