X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=blobdiff_plain;f=includes%2Fpassword%2FParameterizedPassword.php;h=c92979798fc155a154dc1b67fb7eab29d9184a46;hb=e8589233bc3e0c776e2acf36761d3f9b4eb82f04;hp=187f8954213d626f75a4e3f213773bc9b2d49c4d;hpb=8c3738e088f377642c540a0ccddb01b16ba7116b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/password/ParameterizedPassword.php b/includes/password/ParameterizedPassword.php index 187f895421..c92979798f 100644 --- a/includes/password/ParameterizedPassword.php +++ b/includes/password/ParameterizedPassword.php @@ -40,14 +40,14 @@ abstract class ParameterizedPassword extends Password { * Named parameters that have default values for this password type * @var array */ - protected $params = array(); + protected $params = []; /** * Extra arguments that were found in the hash. This may or may not make * the hash invalid. * @var array */ - protected $args = array(); + protected $args = []; protected function parseHash( $hash ) { parent::parseHash( $hash ); @@ -90,7 +90,9 @@ abstract class ParameterizedPassword extends Password { $str .= $this->getDelimiter(); } - return $str . $this->hash; + $res = $str . $this->hash; + $this->assertIsSafeSize( $res ); + return $res; } /**