--- loncom/publisher/lonpubdir.pm 2004/01/04 00:50:11 1.55 +++ loncom/publisher/lonpubdir.pm 2004/01/06 02:15:12 1.57 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.55 2004/01/04 00:50:11 www Exp $ +# $Id: lonpubdir.pm,v 1.57 2004/01/06 02:15:12 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -271,12 +271,12 @@ sub putdirectory { ($dirname eq '.')) { my $kaputt=0; foreach (keys %{$bombs}) { - if ($_=~/^$resdir\/$disfilename\//) { $kaputt=1; last; } + if ($_=~m:^\Q$resdir\E/\Q$disfilename\E/:) { $kaputt=1; last; } } %Apache::lonpublisher::metadatafields=(); %Apache::lonpublisher::metadatakeys=(); my $construct=$here; - $construct=~s/^\/priv\/(\w+)$/\/home\/$1\/public_html/; + $construct=~s:^/priv/(\w+)$:/home/$1/public_html:; &Apache::lonpublisher::metaeval(&Apache::lonnet::getfile( $construct.'/'.$dirname.'/default.meta' )); @@ -284,7 +284,7 @@ sub putdirectory { '