[LON-CAPA-cvs] cvs: loncom /auth loncacc.pm

www www at source.lon-capa.org
Tue Oct 25 14:37:11 EDT 2011


www		Tue Oct 25 18:37:11 2011 EDT

  Modified files:              
    /loncom/auth	loncacc.pm 
  Log:
  Bug #1320: also take filename
  
  
Index: loncom/auth/loncacc.pm
diff -u loncom/auth/loncacc.pm:1.55 loncom/auth/loncacc.pm:1.56
--- loncom/auth/loncacc.pm:1.55	Mon Oct 24 22:39:14 2011
+++ loncom/auth/loncacc.pm	Tue Oct 25 18:37:11 2011
@@ -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 @@
     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 ''; }




More information about the LON-CAPA-cvs mailing list