--- loncom/publisher/lonrights.pm 2011/11/02 18:40:17 1.31 +++ loncom/publisher/lonrights.pm 2011/11/14 00:20:31 1.33 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to show and edit custom distribution rights # -# $Id: lonrights.pm,v 1.31 2011/11/02 18:40:17 raeburn Exp $ +# $Id: lonrights.pm,v 1.33 2011/11/14 00:20:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,7 @@ sub handler { &Apache::lonhtmlcommon::clear_breadcrumbs(); &Apache::lonhtmlcommon::add_breadcrumb({ 'text' => 'Construction Space', - 'href' => &Apache::loncommon::authorspace(), + 'href' => &Apache::loncommon::authorspace($r->uri), }); &Apache::lonhtmlcommon::add_breadcrumb({ 'text' => 'Custom Rights Editor', @@ -78,7 +78,7 @@ sub handler { my $uri=$r->uri; my $fn=&Apache::lonnet::filelocation('',$uri); my $contents=''; - my $constructmode=($uri=~ m/^/priv/}); + my $constructmode=($uri=~ m{^/priv/}); # ============================================================ Modify and store if ($constructmode && $env{'form.store'}) {