From 66b26d6e73dfd9e80d17d6227b50950ba0f82909 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 2 Mar 2009 14:47:13 +0000 Subject: [PATCH] prefix now safely replaced --- inc/install-inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/install-inc.php b/inc/install-inc.php index d0283dfcfd..89e0301888 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -286,6 +286,11 @@ if ((!isInstalled()) || (!isAdminRegistered())) // Read the file $fileContent = READ_FILE($FQFN, true); + // Replace the {!prefix!} with actual one + while (strpos($fileContent, "{!prefix!}") !== false) { + $fileContent = str_replace("{!prefix!}", $mysql['prefix'], $fileContent); + } // END - while + // And split it up against ;\n ... SET_SQLS(merge_array(GET_SQLS(), explode(";\n", $fileContent))); } else { -- 2.39.5