]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
More fixes from bugtracker issues, thanks to profi-concept
[mailer.git] / inc / install-inc.php
index 5768d4807b22dc8bc1490d9b2e3e492afa492102..0ff9df89976b9622efd1dc1f383e5d52cd463eae 100644 (file)
@@ -348,12 +348,8 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT
                                                        // Should be save here because file_exists() is there but we check it again. :)
                                                        $file = secureString($_POST['spath']) . "install/" . $dump;
                                                        if (FILE_READABLE($file)) {
-                                                               // Load the file
-                                                               $sql = implode("", file($file));
-
-                                                               // Remove some unwanted chars
-                                                               $sql = str_replace("\r", "", $sql);
-                                                               $sql = str_replace("\n\n", "\n", $sql);
+                                                               // Read the file
+                                                               $SQLs = READ_FILE($file, true);
 
                                                                // And split it up against ;\n ...
                                                                $SQLs = merge_array($SQLs, explode(";\n", $sql));