Skip to content

Commit

Permalink
Strip even more whitespace characters that do not belong in b64 strings
Browse files Browse the repository at this point in the history
(see RFC 7468)
  • Loading branch information
tvdijen committed Jul 17, 2023
1 parent 89a31ba commit 27e7f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base64ElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ trait Base64ElementTrait
*/
protected function sanitizeContent(string $content): string
{
return str_replace(["\r", "\n", "\t", ' '], '', $content);
return str_replace(["\f", "\r", "\n", "\t", "\v", ' '], '', $content);
}


Expand Down

0 comments on commit 27e7f7c

Please sign in to comment.