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 459c6962d510c5a59e978d2bebebc04823a1be77..5692191704452f620a42d03ab5294cd50a9d96df 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