Skip to content

Commit

Permalink
Fix unintended error leakage not obeying DisplayErrors
Browse files Browse the repository at this point in the history
Reported-by: Greg Davidson <gdavidson@endpoint.com>
  • Loading branch information
David Christensen committed Sep 8, 2017
1 parent 2a51db7 commit dd1df73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Vend/Dispatch.pm
Expand Up @@ -693,7 +693,6 @@ EOF
if $Global::DisplayErrors && $Vend::Cfg->{DisplayErrors}
;
$template = get_locale_message(500, $template, $err);
$template .= "($err)";
logError($err);
response($template);
}
Expand Down Expand Up @@ -1893,7 +1892,7 @@ EOF
if $Global::DisplayErrors && $Vend::Cfg->{DisplayErrors}
;
$template = get_locale_message(500, $template, $err);
$template .= "($err)";
logError($err);
undef $Vend::write_redirect;
response($template);
}
Expand Down

0 comments on commit dd1df73

Please sign in to comment.