trim() added
[mailer.git] / inc / libs / wernis_functions.php
index b9418aa9d5cf2e3e3b0f7cc86faf18a38d8517a0..9aec9da8e97b6a7e599d3a65c5d68a4fb3a8d3b3 100644 (file)
@@ -114,7 +114,7 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData =  array()) {
 
        // All (maybe) fine so remove the response header from server
        for ($idx = (count($response) - 1); $idx > 1; $idx--) {
-               $line = $response[$idx];
+               $line = trim($response[$idx]);
                if (!empty($line)) {
                        $response = $line;
                        break;