uwe-app / app

Universal web editor
https://uwe.app
0 stars 0 forks source link

Disallow "-" file name #493

Open tmpfs opened 3 years ago

tmpfs commented 3 years ago

Make a file with the - name as explicitly not allowed.

This is because we mount internal handlers from a - path, eg: /-/webdav and later /-/api so we need to make sure that a file like -.md or -.html does not conflict.

Whilst a conflict is unlikely I would prefer to be explicit if anyone ever creates a file with a single hyphen.