]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Better encapsulate this a little ...
[mailer.git] / inc / wrapper-functions.php
index 8c0836316486a227df6a3822639ac01baf771a84..c86787ebc2aa0b1bd191896f4dd6b9c1fe288806 100644 (file)
@@ -1108,6 +1108,15 @@ function getHttpStatus () {
  * @access  private
  */
 function sendRawRedirect ($url) {
+       // Clear output buffer
+       clearOutputBuffer();
+
+       // Clear own output buffer
+       $GLOBALS['output'] = '';
+
+       // To make redirects working (no content type), output mode must be raw
+       setOutputMode(-1);
+
        // Send helping header
        setHttpStatus('302 Found');