1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00

feat: Clean mail variables

This commit is contained in:
Binyamin Yawitz 2024-07-18 18:09:39 -04:00
parent 4ce737e914
commit 262c9a10f7
No known key found for this signature in database

View file

@ -334,7 +334,7 @@ class Mail extends Event
*/
public function setVariables(array $variables): self
{
$this->variables = $variables;
$this->variables = array_map(fn ($var) => strip_tags($var), $variables);
return $this;
}