--- loncom/xml/lonxml.pm 2001/08/23 19:41:52 1.124 +++ loncom/xml/lonxml.pm 2001/08/23 21:28:30 1.125 @@ -13,7 +13,7 @@ # 6/12,6/13 H. K. Ng # 6/16 Gerd Kortemeyer # 7/27 H. K. Ng -# 8/7,8/9,8/10,8/11,8/15,8/16,8/17,8/18,8/20 Gerd Kortemeyer +# 8/7,8/9,8/10,8/11,8/15,8/16,8/17,8/18,8/20,8/23 Gerd Kortemeyer package Apache::lonxml; use vars @@ -406,7 +406,9 @@ sub xmlparse { my $finaloutput = &inner_xmlparse($target,\@stack,\@parstack,\@pars, $safeeval,\%style_for_target); - + if ($ENV{'request.uri'}) { + &writeallows($ENV{'request.uri'}); + } return $finaloutput; } @@ -883,7 +885,8 @@ sub writeallows { my %httpref=(); map { $httpref{'httpref.'. - &Apache::lonnet::hreflocation($thisdir,$_)}=$thisurl; } @extlinks; + &Apache::lonnet::hreflocation($thisdir,$_)}=$thisurl; + } @extlinks; &Apache::lonnet::appenv(%httpref); } @@ -1035,7 +1038,6 @@ ENDNOTFOUND $request->print($result); - writeallows($request->uri); return OK; }