X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fgen_sql_patches.php;h=5876e3d5fd88c71dc607c5da7eb37dfc6958e750;hp=61eebc187f0593ba9de770714806487ea559c345;hb=43885129ac24cee5545a8a5ad51e90aa182fdf46;hpb=7d563ebac402d78ee8f5cdf9b0a15eff19c5ff7c diff --git a/inc/gen_sql_patches.php b/inc/gen_sql_patches.php index 61eebc187f..5876e3d5fd 100644 --- a/inc/gen_sql_patches.php +++ b/inc/gen_sql_patches.php @@ -72,7 +72,7 @@ if (empty($_CONFIG['master_salt'])) { if (empty($_CONFIG['file_hash'])) { // Create filename from hashed random string $file_hash = generateHash(GEN_PASS(rand(128, 256))); - $file = PATH."inc/.secret/.".$file_hash; + $file = sprintf("%sinc/.secret/.%s", PATH, $file_hash); // File hash was never created $fp = @fopen($file, 'w') or mxchange_die("Cannot write secret key file!");