Untrust user input for ZxcvbnDictionary
This commit is contained in:
parent
e03d3915c5
commit
40e3071d95
|
|
@ -16,7 +16,7 @@ class ZxcvbnDictionary implements Rule
|
||||||
*/
|
*/
|
||||||
public function __construct($input1 = null, $input2 = null)
|
public function __construct($input1 = null, $input2 = null)
|
||||||
{
|
{
|
||||||
$this->input = array_filter([$input1, $input2]);
|
$this->input = array_filter([base64_decode($input1), base64_decode($input2)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function handle(): string
|
public static function handle(): string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue