X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finstall-inc.php;h=0ff9df89976b9622efd1dc1f383e5d52cd463eae;hb=c3b3af29e6e80926519ade146ac657c036782bd3;hp=5768d4807b22dc8bc1490d9b2e3e492afa492102;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/install-inc.php b/inc/install-inc.php index 5768d4807b..0ff9df8997 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -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));