--- loncom/publisher/lonpublisher.pm 2002/01/18 16:48:14 1.72 +++ loncom/publisher/lonpublisher.pm 2002/03/06 22:58:45 1.74 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.72 2002/01/18 16:48:14 albertel Exp $ +# $Id: lonpublisher.pm,v 1.74 2002/03/06 22:58:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -326,7 +326,12 @@ sub publish { print $logfile 'URL: '.$tag.':'.$oldurl.' - '. $newurl."\n"; } - $allow{&absoluteurl($newurl,$target)}=1; + if (($newurl !~ /^javascript:/i) && + ($newurl !~ /^mailto:/i) && + ($newurl !~ /^http:/i) && + ($newurl !~ /^\#/)) { + $allow{&absoluteurl($newurl,$target)}=1; + } } last; } @@ -392,8 +397,9 @@ sub publish { $scrout.='

Dependencies

'; my $allowstr=''; - foreach (keys %allow) { + foreach (sort(keys(%allow))) { my $thisdep=$_; + if ($thisdep !~ /[^\s]/) { next; } unless ($style eq 'rat') { $allowstr.="\n".''; } @@ -592,7 +598,7 @@ sub publish { $keywordout.=' checked'; } } elsif (&Apache::loncommon::keyword($_)) { - $keywordout.=' checked'; + $keywordout.=' checked'; } $keywordout.='>'.$_.''; if ($colcount>10) {