Skip to content

Commit

Permalink
Worked on form refill.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Robert committed May 28, 2022
1 parent 4ee9fb6 commit 4fdb796
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Chase/Safari/ElementBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ private function create(array $attributes): Element
private function decideValue(array $attributes): array
{
if (!empty($this->request)) {

$v = $attributes['value'] ?? null;
$r = $this->request['value'] ?? null;

$name = $attributes['name'] ?? bin2hex(random_bytes(10));

$r = $this->request[$name] ?? null;

if ($r) {
$attributes['value'] = $r;
Expand Down

0 comments on commit 4fdb796

Please sign in to comment.