[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm

raeburn raeburn at source.lon-capa.org
Sat Jun 1 21:41:09 EDT 2013


raeburn		Sun Jun  2 01:41:09 2013 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  - Test for https in addition to http, when determining if preview should be shown.
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.217 loncom/interface/lonindexer.pm:1.218
--- loncom/interface/lonindexer.pm:1.217	Sat Aug 25 19:22:59 2012
+++ loncom/interface/lonindexer.pm	Sun Jun  2 01:41:09 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.217 2012/08/25 19:22:59 raeburn Exp $
+# $Id: lonindexer.pm,v 1.218 2013/06/02 01:41:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1356,7 +1356,7 @@
 
 sub showpreview {
     my ($filelink)=@_;
-    if ($filelink=~m-^(/ext/|http://)-) {
+    if ($filelink=~m-^(/ext/|https?://)-) {
 	return &mt('External Resource, preview not enabled');
     }
     my ($curfext)=($filelink=~/\.(\w+)$/);




More information about the LON-CAPA-cvs mailing list