mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Qual: Fix spelling for crypted and referer (#27408)
# Qual: Fix spelling for crypted and referer. The proper spelling is encrypted and referrer, but the code has some occurences where referer and crypted need to be maintained. To make verification easier, this spelling correction is limited to mostly these corrections and some minor translations and a only a few other corrections. crypted and referer are added as exceptions for spelling after this fix. Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -92,7 +92,7 @@ function dol_decode($chain, $key = '1')
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a string of random bytes (hexa string) with length = $length fro cryptographic purposes.
|
||||
* Return a string of random bytes (hexa string) with length = $length for cryptographic purposes.
|
||||
*
|
||||
* @param int $length Length of random string
|
||||
* @return string Random string
|
||||
@@ -130,7 +130,7 @@ function dolEncrypt($chain, $key = '', $ciphering = 'AES-256-CTR', $forceseed =
|
||||
|
||||
$reg = array();
|
||||
if (preg_match('/^dolcrypt:([^:]+):(.+)$/', $chain, $reg)) {
|
||||
// The $chain is already a crypted string
|
||||
// The $chain is already a encrypted string
|
||||
return $chain;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user