Skip to content
Refactor query sanitisation to make it safer and more maintainable.

Also, add tests.