version 1.130.4.1, 2010/03/19 22:22:34
|
version 1.131, 2010/03/03 21:33:10
|
Line 417 sub handler {
|
Line 417 sub handler {
|
my $preserved; |
my $preserved; |
foreach my $pair (split(/&/,$query)) { |
foreach my $pair (split(/&/,$query)) { |
my ($name, $value) = split(/=/,$pair); |
my ($name, $value) = split(/=/,$pair); |
unless (($name eq 'symb') || ($name eq 'wrapperdisplay')) { |
unless ($name eq 'symb') { |
$preserved .= $pair.'&'; |
$preserved .= $pair.'&'; |
} |
} |
} |
} |
Line 452 sub handler {
|
Line 452 sub handler {
|
if ($requrl =~ m{^/res/}) { |
if ($requrl =~ m{^/res/}) { |
$access = &Apache::lonnet::allowed('bro',$requrl); |
$access = &Apache::lonnet::allowed('bro',$requrl); |
if ($access ne 'F') { |
if ($access ne 'F') { |
if ($requrl eq '/res/lib/templates/simpleproblem.problem/smpedit') { |
$env{'user.error.msg'}="$requrl:bre:1:1:Access Denied"; |
$access = &Apache::lonnet::allowed('bre','/res/lib/templates/simpleproblem.problem'); |
return HTTP_NOT_ACCEPTABLE; |
if ($access ne 'F') { |
|
$env{'user.error.msg'}="$requrl:bre:1:1:Access Denied"; |
|
return HTTP_NOT_ACCEPTABLE; |
|
} |
|
} else { |
|
$env{'user.error.msg'}="$requrl:bre:1:1:Access Denied"; |
|
return HTTP_NOT_ACCEPTABLE; |
|
} |
|
} |
} |
} else { |
} else { |
$env{'user.error.msg'}="$requrl:bre:1:1:Access Denied"; |
$env{'user.error.msg'}="$requrl:bre:1:1:Access Denied"; |