anonymousland-synapse/changelog.d/11230.bugfix
Shay 0bcae8ad56
Change display names/avatar URLs to None if they contain null bytes before storing in DB (#11230)
* change display names/avatar URLS to None if they contain null bytes

* add changelog

* add POC test, requested changes

* add a saner test and remove old one

* update test to verify that display name has been changed to None

* make test less fragile
2021-11-12 10:38:24 -08:00

2 lines
136 B
Plaintext

Fix a long-standing bug wherein display names or avatar URLs containing null bytes cause an internal server error
when stored in the DB.