Diff for /rat/lonratsrv.pm between versions 1.38 and 1.39

version 1.38, 2006/11/02 21:26:54 version 1.39, 2006/12/20 22:42:48
Line 30  package Apache::lonratsrv; Line 30  package Apache::lonratsrv;
   
 use strict;  use strict;
 use Apache::Constants qw(:common);  use Apache::Constants qw(:common);
   use LONCAPA();
 use LONCAPA::map();  use LONCAPA::map();
   
   
Line 43  sub handler { Line 44  sub handler {
   return OK if $r->header_only;    return OK if $r->header_only;
   
   my $url=$r->uri;    my $url=$r->uri;
   $url=~/\/(\w+)\/ratserver$/;    $url=~m{/(\w+)/ratserver$};
   my $mode=$1;    my $mode=$1;
   
   $url=~s/\/loadonly\/ratserver$/\/save\/ratserver/;    $url=~s{/loadonly/ratserver$}{/save/ratserver};
       
   my $fn=$r->filename;    my $fn=$r->filename;
   my $lonDocRoot=$r->dir_config('lonDocRoot');    my $lonDocRoot=$r->dir_config('lonDocRoot');
   if ( $fn =~ /\Q$lonDocRoot\E/ ) {    if ( $fn =~ /\Q$lonDocRoot\E/ ) {
       #internal authentication, needs fixup.        #internal authentication, needs fixup.
       $fn = $url;        $fn = $url;
       $fn=~s|^/~(\w+)|/home/$1/public_html|;        $fn=~s{^/~($LONCAPA::username_re)}{/home/$1/public_html};
       $fn=~s|/[^/]*/ratserver$||;        $fn=~s{/[^/]*/ratserver$}{};
   }    }
   my $errtext='';    my $errtext='';
   my $infotext='';    my $infotext='';

Removed from v.1.38  
changed lines
  Added in v.1.39


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.