OSC / ood-fileexplorer

[MOVED] The Open OnDemand File Explorer
https://osc.github.io/Open-OnDemand/
MIT License
4 stars 1 forks source link

[EXAMPLE] - Reject XML reserved characters from new file paths #199

Closed MorganRodgers closed 5 years ago

MorganRodgers commented 5 years ago

XML/HTML partials are valid in file names, however our version of CloudCmd does not handle them gracefully; they can break the frontend completely. The naive fix is to simply reject these file names at the frontend.

Consider the following cases:

I do not love this solution because it rejects file names that are valid as far as the file system is concerned. With that said, this solution is acceptable given that we are talking about replacing this application in the near to mid-term.

Fixes #198.