--- rat/lonpage.pm 2001/12/17 00:57:59 1.30 +++ rat/lonpage.pm 2002/03/06 15:00:55 1.32 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.30 2001/12/17 00:57:59 harris41 Exp $ +# $Id: lonpage.pm,v 1.32 2002/03/06 15:00:55 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -304,7 +304,10 @@ sub handler { $thisdir=~s/\/[^\/]*$//; foreach (@rlinks) { unless (($_=~/^http:\/\//i) || - ($_=~/^\//)) { + ($_=~/^\//) || + ($_=~/^javascript:/i) || + ($_=~/^mailto:/i) || + ($_=~/^\#/)) { my $newlocation= &Apache::lonnet::hreflocation($thisdir,$_); $output=~s/(\"|\'|\=\s*)$_(\"|\'|\s|\>)/$1$newlocation$2/; @@ -343,7 +346,7 @@ sub handler { $r->print("\n\n"); } - $r->print(&Apache::lonxml::registerurl(1)); + $r->print(&Apache::lonxml::registerurl(1,undef)); $r->print("\n\n"); # ------------------------------------------------------------------ Start body if ($isxml) {