X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fwernis_functions.php;h=9aec9da8e97b6a7e599d3a65c5d68a4fb3a8d3b3;hb=e1d636846bafc8ae71855595a2a2843463025e26;hp=56302d59e66111f31ec5a272116ca2c2fa10f152;hpb=1355d2c0b29510dbd407f9cde9f41a5ac02d01fa;p=mailer.git diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index 56302d59e6..9aec9da8e9 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -113,7 +113,13 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData = array()) { } // END - if // All (maybe) fine so remove the response header from server - $response = $response[(count($response) - 1)]; + for ($idx = (count($response) - 1); $idx > 1; $idx--) { + $line = trim($response[$idx]); + if (!empty($line)) { + $response = $line; + break; + } + } // Prepare the returning result for higher functions if (substr($response, 0, 1) == '&') {