From f7306619d72ad393089ba210f575d3ff2859cf57 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 25 Jun 2018 16:58:14 -0400 Subject: fix _in_eval() logic --- Bugzilla/Error.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 9fcd16386..42757f39c 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -31,7 +31,7 @@ use Scalar::Util qw(blessed); sub _in_eval { my $in_eval = 0; for (my $stack = 1; my $sub = (caller($stack))[3]; $stack++) { - last if $sub =~ /^ModPerl/; + last if $sub =~ /^Bugzilla::Quantum::CGI::try/; $in_eval = 1 if $sub =~ /^\(eval\)/; } return $in_eval; -- cgit v1.2.3-24-g4f1b