HomeSoftware Heritage

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

Description

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.

Details

Provenance
anlambertAuthored on Nov 5 2021, 12:07 PM
anlambertPushed on Nov 15 2021, 10:28 AM
Differential Revision
D6614: assets/xss-filtering: Strip any query parameters from img src attribute
Parents
rDWAPPS1e106c798e44: Missing tests for origin legacy routes
Branches
Unknown
Tags
Unknown
Build Status
Buildable 25009
Build 39078: test-and-buildJenkins console · Jenkins