don't crash on malformed avatar and banner values #506

Merged
floatingghost merged 1 commit from flisk/akkoma:fix-crash-malformed-avatars-banners into develop 2023-03-13 00:28:17 +00:00
Contributor

weird values in href will cause base64 encoding to fail later down the
line, so let's make sure the value we're passing on is somewhat sane, or
at the very least a binary

this fixes #482

weird values in href will cause base64 encoding to fail later down the line, so let's make sure the value we're passing on is somewhat sane, or at the very least a binary this fixes #482
flisk added 1 commit 2023-03-12 17:20:27 +00:00
don't crash on malformed avatar and banner values
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
0c77be9308
weird values in href will cause base64 encoding to fail later down the
line, so let's make sure the value we're passing on is somewhat sane, or
at the very least a binary

this fixes #482
Author
Contributor

oh yeah and i took the liberty of refactoring that code a little along with the fix, hope that's cool

oh yeah and i took the liberty of refactoring that code a little along with the fix, hope that's cool

this seems good, thanks a lot!

this seems good, thanks a lot!
floatingghost merged commit c5769bbf6d into develop 2023-03-13 00:28:17 +00:00
floatingghost deleted branch fix-crash-malformed-avatars-banners 2023-03-13 00:28:17 +00:00
Sign in to join this conversation.
No description provided.