Skip to content

Commit

Permalink
2.1.27
Browse files Browse the repository at this point in the history
Fix for #1919
  • Loading branch information
nilsteampassnet committed Sep 23, 2017
1 parent 80cfdb0 commit 2dcba5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Configuration variables are not set in SESSION anymore. Now read from tp.config.php file.
Fix: issue on offline export
Fix: error on deleting a folder at root
#1919 Upgrade to release 2.1.27.8 converts encrypted database password back to clear-text
#1915 Cannot Edit or Delete items in the Personal folder
#1909 Roles Management - Problem with acess rights "Edit" "Delete"
#1903 SSH Password Change does not work
Expand Down
2 changes: 1 addition & 1 deletion install/upgrade_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ function tableExists($tablename)
### DATABASE connexion parameters ###
\$server = \"".$server."\";
\$user = \"".$user."\";
\$pass = \"". str_replace("$", "\\$", $pass)."\";
\$pass = \"".cryption($pass, "", "encrypt")['string']."\";
\$database = \"".$database."\";
\$port = ".$port.";
\$pre = \"".$pre."\";
Expand Down
15 changes: 0 additions & 15 deletions install/upgrade_run_2.1.27.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,21 +711,6 @@ function replace_a_line($data)
fclose($file_handler);


// Encrypt the database password
if (substr($_SESSION['pass'], 0, 3) !== "def") {
$encrypted_text = cryption($pass, "", "encrypt")['string'];

$result = '';
$lines = file('../includes/config/settings.php');
foreach ($lines as $line) {
if (substr($line, 0, 9) === '$pass = "') {
$result .= '$pass = "'.$encrypted_text.'";'."\r\n";
} else {
$result .= $line;
}
}
file_put_contents('../includes/config/settings.php', $result);
}

// Finished
echo '[{"finish":"1" , "next":"", "error":""}]';

0 comments on commit 2dcba5d

Please sign in to comment.