Skip to content

Font files generated with double dots in filename (e.g. Roboto-Bold..ttf) #9806

@d4rkfella

Description

@d4rkfella

Describe the bug
When building the JavaScript bundle, font files are generated with double dots in their filenames (e.g. Roboto-Bold..ttf, Roboto-Medium..ttf, Roboto-Regular..ttf) in pgadmin/static/js/generated/fonts/.

To Reproduce
Clone the pgAdmin4 repository
Run yarn install && yarn run bundle in the web/ directory
Inspect the generated files in pgadmin/static/js/generated/fonts/

Expected behavior
Font files should be generated with single dots, e.g. Roboto-Bold.ttf

Additional context
Package managers and tools that treat .. in paths as unsafe (e.g. directory traversal protection) will skip these files entirely, resulting in missing fonts in the application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions