Skip to content

fileserver: grid view - preview img src attribute is not URL query-escaped #6237

@DenebTM

Description

@DenebTM

In the grid view of the file browser's default template, if the filename of an image contains the characters # or ?, the preview doesn't appear, since web browsers (at least Firefox and Chromium) parse the src attribute as an URL. The href attribute pointing to the file itself is unaffected, so it remains possible to click on these files to open them, only the preview is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions