version 1.62, 2005/02/08 01:20:11
|
version 1.63, 2005/03/01 00:22:57
|
Line 121 sub handler {
|
Line 121 sub handler {
|
$symb=&Apache::lonnet::symbclean($ENV{'form.symb'}); |
$symb=&Apache::lonnet::symbclean($ENV{'form.symb'}); |
if ($requrl =~ m|^/adm/wrapper/|) { |
if ($requrl =~ m|^/adm/wrapper/|) { |
my ($map,$mid,$murl)=&Apache::lonnet::decode_symb($symb); |
my ($map,$mid,$murl)=&Apache::lonnet::decode_symb($symb); |
&Apache::lonnet::symblist($map,$murl => $mid, |
&Apache::lonnet::symblist($map,$murl => [$murl,$mid], |
'last_known' => $murl); |
'last_known' =>[$murl,$mid]); |
} elsif ((&Apache::lonnet::symbverify($symb,$requrl)) || |
} elsif ((&Apache::lonnet::symbverify($symb,$requrl)) || |
(($requrl=~m|(.*)/smpedit$|) && |
(($requrl=~m|(.*)/smpedit$|) && |
&Apache::lonnet::symbverify($symb,$1))) { |
&Apache::lonnet::symbverify($symb,$1))) { |
my ($map,$mid,$murl)=&Apache::lonnet::decode_symb($symb); |
my ($map,$mid,$murl)=&Apache::lonnet::decode_symb($symb); |
&Apache::lonnet::symblist($map,$murl => $mid, |
&Apache::lonnet::symblist($map,$murl => [$murl,$mid], |
'last_known' => $murl); |
'last_known' =>[$murl,$mid]); |
} else { |
} else { |
$r->log_reason('Invalid symb for '.$requrl.': '. |
$r->log_reason('Invalid symb for '.$requrl.': '. |
$symb); |
$symb); |
Line 147 sub handler {
|
Line 147 sub handler {
|
} |
} |
if ($symb) { |
if ($symb) { |
my ($map,$mid,$murl)=split(/\_\_\_/,$symb); |
my ($map,$mid,$murl)=split(/\_\_\_/,$symb); |
&Apache::lonnet::symblist($map,$murl => $mid, |
&Apache::lonnet::symblist($map,$murl =>[$murl,$mid], |
'last_known' => $murl); |
'last_known' =>[$murl,$mid]); |
} |
} |
} |
} |
$ENV{'request.symb'}=$symb; |
$ENV{'request.symb'}=$symb; |