Response from server parsed through trim() to avoid trailing/leading whitespaces
authorRoland Häder <roland@mxchange.org>
Thu, 6 Mar 2008 20:08:03 +0000 (20:08 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 6 Mar 2008 20:08:03 +0000 (20:08 +0000)
inc/functions.php

index 459c696..5692191 100644 (file)
@@ -1679,7 +1679,7 @@ function MXCHANGE_OPEN($script) {
 
        // Read response
        while(!feof($fp)) {
-               $response[] = fgets($fp, 1024);
+               $response[] = trim(fgets($fp, 1024));
        }
 
        // Close socket