Skip to content

Commit 7260061

Browse files
authored
fix jsUrl use relative path using a single dot
jsUrl use relative path using a single dot
1 parent 53925b4 commit 7260061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/install.queries.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ function encryptFollowingDefuse($message, $ascii_key)
15631563
copy($csrfp_file_sample, $csrfp_file); // make a copy of csrfp.config.sample file
15641564
$data = file_get_contents($csrfp_file);
15651565
$newdata = str_replace('"CSRFP_TOKEN" => ""', '"CSRFP_TOKEN" => "' . bin2hex(openssl_random_pseudo_bytes(25)) . '"', $data);
1566-
$jsUrl = $inputData['data']['url_path'] . '/includes/libraries/csrfp/js/csrfprotector.js';
1566+
$jsUrl = './includes/libraries/csrfp/js/csrfprotector.js';
15671567
$newdata = str_replace('"jsUrl" => ""', '"jsUrl" => "' . $jsUrl . '"', $newdata);
15681568
file_put_contents('../includes/libraries/csrfp/libs/csrfp.config.php', $newdata);
15691569

0 commit comments

Comments
 (0)