Steps to reproduce:
- Create a file "><img src=1 onerror=alert(1)>.jpg locally (any image will do).
- Attach it to a wiki page.
- Click on the attachments button at the bottom of the page.
- Click on the version number next to the filename to display the history.
- The history is displayed and the full filename is displayed in the title.
- An alert is displayed again and the filename in the title of the history isn't fully displayed.