--- loncom/homework/daxepage.pm 2015/12/10 16:26:43 1.1 +++ loncom/homework/daxepage.pm 2016/01/12 19:07:16 1.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Page with Daxe on the left side and the preview on the right side # -# $Id: daxepage.pm,v 1.1 2015/12/10 16:26:43 damieng Exp $ +# $Id: daxepage.pm,v 1.3 2016/01/12 19:07:16 damieng Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,7 +36,7 @@ sub handler { my $uri = $request->uri; $uri =~ s/^\/daxepage//; &Apache::loncommon::no_cache($request); - if ($uri !~ /\.(task|problem|exam|quiz|assess|survey|library)$/) { + if ($uri !~ /\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$/) { $request->status(406); return OK; } @@ -47,21 +47,15 @@ sub handler { my $name = $uri; $name =~ s/^.*\/([^\/]+)$/$1/; $result .= "