This commit is contained in:
Laurent Destailleur
2026-02-21 12:22:34 +01:00
parent ac8af31c51
commit 63ed00fdba
4 changed files with 7 additions and 128 deletions

View File

@@ -240,6 +240,9 @@ class CodingSqlTest extends CommonClassTest
print 'Check sql file '.$file."\n";
$filecontent = file_get_contents(DOL_DOCUMENT_ROOT.'/../dev/initdemo/'.$file);
// We protect this string key that is legitimate into the init of demo file
$filecontent = str_replace("BLOCKEDLOG_HMAC_KEY',0,'dolcrypt:", "__STRINGOK__", $filecontent);
$result = strpos($filecontent, 'dolcrypt:');
print __METHOD__." Result for checking we don't have a crypted value that could not be decrypted on a restored instance with other key = ".$result."\n";
$this->assertTrue($result === false, 'Found a "dolcrypt:" into file '.$file);