trim() added
authorRoland Häder <roland@mxchange.org>
Fri, 14 Aug 2009 20:10:36 +0000 (20:10 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 14 Aug 2009 20:10:36 +0000 (20:10 +0000)
inc/libs/wernis_functions.php

index b9418aa..9aec9da 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;