Skip to content

assets/xss-filtering: Strip any query parameters from img src attribute

When attempting to replace a relative image url with the one for getting the image bytes from the archive content, ensure that query parameters will be stripped from the image src attribute otherwise the image path will not be found in the archive.

This will fix most of the errors reported in that sentry issue.


Migrated from D6614 (view on Phabricator)

Merge request reports