Several fixes on core and wernis extension
[mailer.git] / inc / functions.php
index 1ef5165a5a35d301c484bb8fce92f98306cdc59e..3cdabf7e3e09ff0c32816a90d0a133e6ad209b27 100644 (file)
@@ -930,7 +930,7 @@ function LOAD_URL($URL, $addUrlData=true) {
        } else {
                // Output error message
                include(PATH."inc/header.php");
-               LOAD_TEMPLATE("redirect_url", false, $URL);
+               LOAD_TEMPLATE("redirect_url", false, str_replace("&", "&", $URL));
                include(PATH."inc/footer.php");
        }
        exit();
@@ -1635,7 +1635,7 @@ function ADD_EMAIL_NAV($PAGES, $offset, $show_form, $colspan, $return=false) {
 }
 
 //
-function MXCHANGE_OPEN($script) {
+function MXCHANGE_OPEN ($script) {
        // Compile the script name
        $script = COMPILE_CODE($script);
 
@@ -1659,8 +1659,7 @@ function MXCHANGE_OPEN($script) {
 
        // Open connection
        $fp = @fsockopen($host, 80, $errno, $errdesc, 30);
-       if (!$fp)
-       {
+       if (!$fp) {
                // Failed!
                return array("", "", "");
        }