wttw / aboutmyemail

Content for the aboutmy.email website
4 stars 1 forks source link

Zero bytes in text parts cause processing to fail #49

Closed wttw closed 3 months ago

wttw commented 3 months ago

If a text/* part has a zero byte in it that will be encoded to JSON as \u0000, which postgresql jsonb does not support.

We should catch the database write failure and do ... something, and also strip nuls from the text parts we're saving.

wttw commented 3 months ago

Fixed in 0.9.21.