X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=f10335f0442327aee498725935b360b2ab02f77d;hb=05ebac45eec0b77743fc87c07abd07d41e3450b2;hp=8c0836316486a227df6a3822639ac01baf771a84;hpb=b822c9bb96f24c045e2d5553415f5e20e008402b;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 8c08363164..f10335f044 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -540,12 +540,12 @@ function isNicknameUsed ($userid) { } // Getter for 'what' value -function getWhat () { +function getWhat ($strict = true) { // Default is null $what = NULL; // Is the value set? - if (isWhatSet(true)) { + if (isWhatSet($strict)) { // Then use it $what = $GLOBALS['__what']; } // END - if @@ -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');