--- loncom/xml/lonxml.pm 2002/04/10 15:19:59 1.167 +++ loncom/xml/lonxml.pm 2002/05/01 21:40:25 1.168 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.167 2002/04/10 15:19:59 albertel Exp $ +# $Id: lonxml.pm,v 1.168 2002/05/01 21:40:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -336,26 +336,20 @@ sub registerurl { if ($ENV{'browser.type'} eq 'explorer') { $nothing='javascript:void(0);'; } if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) { my $hwkadd=''; - if ($ENV{'REQUEST_URI'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { + if ($ENV{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { $hwkadd.=(<