PMCORE-2298 Password is stored in plain text when is hashed via G::encrypt and it contains a pipe (|)
This commit is contained in:
@@ -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