From dc63fa138e1a9f5fe3b6ace426883847680c5e77 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 May 2005 16:59:49 +0000 Subject: [PATCH] r183: Change the way header redirects are handled --- includes/class_message_reporter.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/class_message_reporter.php b/includes/class_message_reporter.php index 5746197..d5f41f7 100755 --- a/includes/class_message_reporter.php +++ b/includes/class_message_reporter.php @@ -13,7 +13,7 @@ class Message_Reporter { var $url = ''; - var $useheaders = true; + var $useheaders = false; var $phrase = null; var $process = ''; @@ -78,15 +78,16 @@ class Message_Reporter $this->process = (($text) ? $text : $this->process); $this->url = (($url) ? $url : $this->url); + $redirectmessage = $this->process; + $redirecturl = $this->url; + + eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_redirect') . '");'); + if ($this->useheaders) { header("Location: {$this->url}"); } - $redirectmessage = $this->process; - $redirecturl = $this->url; - - eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_redirect') . '");'); exit; } -- 2.43.5