--- loncom/interface/lonindexer.pm 2006/06/08 13:56:31 1.145 +++ loncom/interface/lonindexer.pm 2006/06/23 06:39:09 1.146 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.145 2006/06/08 13:56:31 www Exp $ +# $Id: lonindexer.pm,v 1.146 2006/06/23 06:39:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1163,9 +1163,11 @@ sub showpreview { close(FH); } else { $output=&Apache::lonnet::ssi_body($filelink); +# Is access denied? Don't render, don't store if ($output=~/LONCAPAACCESSCONTROLERRORSCREEN/s) { $output=''; - } else { +# Was this rendered in course content? Don't store + } elsif (!&Apache::lonnet::symbread($filelink)) { open(FH,">$cache"); print FH $output; close(FH);