From 767b015b9e032070bd368bc5615ace25aae5f62e Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 27 Oct 2014 21:13:33 -0700 Subject: [PATCH] Corrected debug setup in bounce handler script. --- e107_handlers/bounce_handler.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e107_handlers/bounce_handler.php b/e107_handlers/bounce_handler.php index c90f06ec2..b09149fc2 100644 --- a/e107_handlers/bounce_handler.php +++ b/e107_handlers/bounce_handler.php @@ -4,7 +4,7 @@ // WARNING, any echoed output from this script will be returned to the sender as a bounce message. - $_E107['debug'] = true; + $_E107['debug'] = false; if (!defined('e107_INIT')) @@ -14,6 +14,10 @@ if (!defined('e107_INIT')) require_once($class2); } +if(ADMIN && varset($_GET['eml'])) +{ + $_E107['debug'] = true; +} $bnc = new e107Bounce; $process = (varset($_GET['eml']) && $_E107['debug']) ? $_GET['eml'].".eml" : FALSE; @@ -65,7 +69,7 @@ class e107Bounce if(varset($_GET['eml'])) { - // echo $message; + echo $message; } else {