Skip to content

Commit

Permalink
🐛 fixed type error on sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Jan 22, 2022
1 parent 96f7869 commit 3ea5468
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Anchor.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public static function sanitize($data)
foreach ($data as $key => $value) {
$data[is_string($key) ? self::sanitize($key) : $key] = self::sanitize($value);
}
} else {
}

if (is_string($data)) {
$data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
}

Expand Down

0 comments on commit 3ea5468

Please sign in to comment.