mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Don't use error handler that doesn't exist
This commit is contained in:
@ -2806,10 +2806,17 @@ local $eh = $error_handler_recurse ? undef :
|
||||
$config{"error_handler_".$code} ? $config{"error_handler_".$code} :
|
||||
$config{'error_handler'} ? $config{'error_handler'} : undef;
|
||||
print DEBUG "http_error code=$code message=$msg body=$body\n";
|
||||
if ($eh) {
|
||||
my $found;
|
||||
foreach my $root (@preroots, @roots) {
|
||||
$found++ if (-e $root."/".$eh);
|
||||
}
|
||||
$eh = undef if (!$found);
|
||||
}
|
||||
if ($eh) {
|
||||
# Call a CGI program for the error
|
||||
$page = "/$eh";
|
||||
$querystring = "code=$_[0]&message=".&urlize($msg).
|
||||
$querystring = "code=".&urlize($code)."&message=".&urlize($msg).
|
||||
"&body=".&urlize($body);
|
||||
$error_handler_recurse++;
|
||||
$ok_code = $code;
|
||||
|
Reference in New Issue
Block a user