Diff for /loncom/auth/loncacc.pm between versions 1.30 and 1.32

version 1.30, 2003/09/16 18:15:43 version 1.32, 2004/01/15 20:22:47
Line 46  use Apache::lonlocal; Line 46  use Apache::lonlocal;
   
 sub constructaccess {  sub constructaccess {
     my ($url,$ownerdomain)=@_;      my ($url,$ownerdomain)=@_;
     my ($ownername)=($url=~/\/(?:\~|priv\/|home\/)(\w+)/);      my ($ownername)=($url=~/\/(?:\~|priv\/|home\/)(\w+)\//);
     unless (($ownername) && ($ownerdomain)) { return ''; }      unless (($ownername) && ($ownerdomain)) { return ''; }
     # We do not allow editing of previous versions of files.      # We do not allow editing of previous versions of files.
     if ($url=~/\.(\d+)\.(\w+)$/) { return ''; }      if ($url=~/\.(\d+)\.(\w+)$/) { return ''; }
Line 84  sub handler { Line 84  sub handler {
   
 # --------------------------------------------------------- Initialize Language  # --------------------------------------------------------- Initialize Language
     
      &Apache::lonlocal::get_language_handle();       &Apache::lonlocal::get_language_handle($r);
   
 # -------------------------------------------------------------- Resource State  # -------------------------------------------------------------- Resource State
   

Removed from v.1.30  
changed lines
  Added in v.1.32


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>