--- loncom/interface/londocs.pm 2006/11/30 23:34:38 1.262 +++ loncom/interface/londocs.pm 2006/12/01 22:17:26 1.263 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.262 2006/11/30 23:34:38 banghart Exp $ +# $Id: londocs.pm,v 1.263 2006/12/01 22:17:26 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -936,7 +936,7 @@ sub group_import { my $idx = &LONCAPA::map::getresidx($url); $LONCAPA::map::order[$#LONCAPA::map::order+1]=$idx; my $ext = 'false'; - if ($url=~/^http:\/\// || $url=~/^https:\/\//) { $ext = 'true'; } + if ($url=~m{^http://} || $url=~m{^https://}) { $ext = 'true'; } $url =~ s/:/\:/g; $name =~ s/:/\:/g; $LONCAPA::map::resources[$idx] =