]> git.mxchange.org Git - mailer.git/commitdiff
Fixes for redirection problem
authorRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 19:47:08 +0000 (19:47 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 19:47:08 +0000 (19:47 +0000)
inc/functions.php
index.php

index 25cb94adb14ee8db77fb50cc97c1c1f225f38b62..36e2dca25ca518a4fcf45afa9576a04c34c60dad 100644 (file)
@@ -978,8 +978,11 @@ function redirectToUrl ($URL) {
                // Output new location link as anchor
                outputHtml('<a href="' . $URL . '"' . $rel . '>' . $URL . '</a>');
        } elseif (!headers_sent()) {
                // Output new location link as anchor
                outputHtml('<a href="' . $URL . '"' . $rel . '>' . $URL . '</a>');
        } elseif (!headers_sent()) {
-               // Load URL when headers are not sent
                //* DEBUG: */ debug_report_bug("URL={$URL}");
                //* DEBUG: */ debug_report_bug("URL={$URL}");
+               // Clear own output buffer
+               $GLOBALS['output'] = '';
+
+               // Load URL when headers are not sent
                sendHeader('Location: '.str_replace('&amp;', '&', $URL));
        } else {
                // Output error message
                sendHeader('Location: '.str_replace('&amp;', '&', $URL));
        } else {
                // Output error message
index f576059535fd9069740cd9f653b4955f5f53ef7f..040678bcea2b5706a19531dc6489f8625a10cba9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -63,7 +63,7 @@ if (!isConfigEntrySet('index_delay'))  setConfigEntry('index_delay' , 0);
 if (!isConfigEntrySet('index_cookie')) setConfigEntry('index_cookie', 0);
 
 // Check for cookies
 if (!isConfigEntrySet('index_cookie')) setConfigEntry('index_cookie', 0);
 
 // Check for cookies
-if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > 0)) {
+if ((isSessionVariableSet('visited')) || (getConfig('index_delay') > -1)) {
        // Is the index page configured for redirect pr not?
        if (getConfig('index_cookie') > 0) {
                // Set cookie and remeber it for specified time
        // Is the index page configured for redirect pr not?
        if (getConfig('index_cookie') > 0) {
                // Set cookie and remeber it for specified time