]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1155009: Cache::Memcached causes email_in.pl to stop working
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 May 2015 10:20:27 +0000 (12:20 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 May 2015 10:20:27 +0000 (12:20 +0200)
r/a=glob

email_in.pl

index 70ef26b6c067c5c8d9fad0478bd19d87a08a615c..448d75d0ee6bc3524048abdbe5e0690c697b4d56 100755 (executable)
@@ -466,7 +466,7 @@ sub die_handler {
 
     # If this is inside an eval, then we should just act like...we're
     # in an eval (instead of printing the error and exiting).
-    die(@_) if $^S;
+    die @_ if ($^S // Bugzilla::Error::_in_eval());
 
     # We can't depend on the MTA to send an error message, so we have
     # to generate one properly.