Merged in bugfix/PMCORE-2298 (pull request #7713)
PMCORE-2298 Password is stored in plain text when is hashed via G::encrypt and it contains a pipe (|) Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
7c156aa2ca
@@ -480,7 +480,7 @@ class DbConnections
|
||||
if ($row[2] != '') {
|
||||
$aPass = explode('_', $row[2]);
|
||||
if (count($aPass) == 1) {
|
||||
$passEncrypt = G::encrypt($row[2], $row[1]);
|
||||
$passEncrypt = G::encrypt($row[2], $row[1], false, false);
|
||||
$passEncrypt .= "_2NnV3ujj3w";
|
||||
$c2 = new Criteria('workflow');
|
||||
$c2->add(DbSourcePeer::DBS_PASSWORD, $passEncrypt);
|
||||
|
||||
Reference in New Issue
Block a user