[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 23 Jun 2006 06:39:13 -0000
www Fri Jun 23 02:39:13 2006 EDT
Modified files:
/loncom/interface lonindexer.pm
Log:
Partial solution for Bug #4833: don't store thumbnails that were generated in course context.
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.145 loncom/interface/lonindexer.pm:1.146
--- loncom/interface/lonindexer.pm:1.145 Thu Jun 8 09:56:31 2006
+++ loncom/interface/lonindexer.pm Fri Jun 23 02:39:09 2006
@@ -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 @@
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);