--- loncom/interface/lonindexer.pm 2006/07/28 19:16:08 1.150 +++ loncom/interface/lonindexer.pm 2006/07/31 19:45:57 1.151 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Directory Indexer # -# $Id: lonindexer.pm,v 1.150 2006/07/28 19:16:08 www Exp $ +# $Id: lonindexer.pm,v 1.151 2006/07/31 19:45:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1163,7 +1163,7 @@ sub coursecontext { sub showpreview { my ($filelink)=@_; - if ($filelink=~/^(\/ext\/|http\:\/\/)/) { + if ($filelink=~m-^(/ext/|http://)-) { return &mt('External Resource, preview not enabled'); } my ($curfext)=($filelink=~/\.(\w+)$/);