Skip to content

Media Browser doesn't show files for directories with an ampersand (&) character  #14264

@JoshuaLuckers

Description

@JoshuaLuckers

Bug report

Summary

While testing PR #14263 I noticed that the media browser doesn't show files for directories containing an ampersand (&) character.

Step to reproduce

  1. Create a directory with an ampersand, eg. Something & Something (not via the media browser).
  2. Put some files in it
  3. Navigate to the directory using the MODX media browser.

Observed behavior

The media browser does not list the files in the directory if the directory name contains an & character. Deleting it is also not possible and will throw an error: The specified directory is not a directory.

Expected behavior

The media browser should display files in directories whose name contain characters the filesystem allows.

Environment

MODX 2.7.x-dev

Metadata

Metadata

Assignees

Labels

bugThe issue in the code or project, which should be addressed.type-frontendIssues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions