[ticket/13280] Properly format the current page and add sanitizer to tests

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13280
Is this even needed after the symfony request change?