More server_name validation
We need to do a bit more validation when we get a server name, but don't want to be re-doing it all over the shop, so factor out a separate parse_and_validate_server_name, and do the extra validation. Also, use it to verify the server name in the config file.
Showing
- changelog.d/3483.feature 1 addition, 0 deletionschangelog.d/3483.feature
- synapse/config/server.py 9 additions, 2 deletionssynapse/config/server.py
- synapse/federation/transport/server.py 3 additions, 2 deletionssynapse/federation/transport/server.py
- synapse/http/endpoint.py 42 additions, 5 deletionssynapse/http/endpoint.py
- tests/http/test_endpoint.py 13 additions, 4 deletionstests/http/test_endpoint.py
Loading
Please register or sign in to comment