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

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13280
Since 5.3 that works indeed. http://3v4l.org/fr1Z9