HomeSoftware Heritage

assets/xss-filtering: Ensure to use correct directory

Description

assets/xss-filtering: Ensure to use correct directory

When attempting to fetch image bytes from the archive, ensure to
use the correct directory id to resolve image bytes from a path.

Previously only the parent directory of the currently browsed
object was considered, leading to 404 errors when attempting
to render a README with images in a sub-directory.

Details

Provenance
anlambertAuthored on Nov 5 2021, 2:15 PM
anlambertPushed on Nov 15 2021, 10:28 AM
Parents
rDWAPPSe0f33695c7b3: assets/xss-filtering: Strip any query parameters from img src attribute
Branches
Unknown
Tags
Unknown
Build Status
Buildable 25010
Build 39079: test-and-buildJenkins console · Jenkins