--- loncom/auth/loncacc.pm 2011/10/24 22:39:14 1.55 +++ loncom/auth/loncacc.pm 2011/10/25 18:37:11 1.56 @@ -2,7 +2,7 @@ # Cookie Based Access Handler for Construction Area # (lonacc: 5/21/99,5/22,5/29,5/31 Gerd Kortemeyer) # -# $Id: loncacc.pm,v 1.55 2011/10/24 22:39:14 www Exp $ +# $Id: loncacc.pm,v 1.56 2011/10/25 18:37:11 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,7 +103,7 @@ sub constructaccess { if ($url=~/\.(\d+)\.(\w+)$/) { return ''; } # Get username and domain from URL - my ($ownerdomain,$ownername)=($url=~/^\/priv\/($match_domain)\/($match_username)\//); + my ($ownerdomain,$ownername)=($url=~/^(?:\/home\/httpd\/html\/|\/)priv\/($match_domain)\/($match_username)\//); # The URL does not really point to any authorspace, forget it unless (($ownername) && ($ownerdomain)) { return ''; }