Redirection work-around added
[mailer.git] / inc / functions.php
index 459c6962d510c5a59e978d2bebebc04823a1be77..1ef5165a5a35d301c484bb8fce92f98306cdc59e 100644 (file)
@@ -930,7 +930,7 @@ function LOAD_URL($URL, $addUrlData=true) {
        } else {
                // Output error message
                include(PATH."inc/header.php");
-               OUTPUT_HTML(LOAD_URL_ERROR_1.$URL.LOAD_URL_ERROR_2);
+               LOAD_TEMPLATE("redirect_url", false, $URL);
                include(PATH."inc/footer.php");
        }
        exit();
@@ -1679,7 +1679,7 @@ function MXCHANGE_OPEN($script) {
 
        // Read response
        while(!feof($fp)) {
-               $response[] = fgets($fp, 1024);
+               $response[] = trim(fgets($fp, 1024));
        }
 
        // Close socket