Files
OpenScreens/.github/workflows
Burak Goncu ec4e0bd17b engine: clean a downloaded item's name one code point at a time
A file copied from a Mac is saved under the name the Mac gives it, with
slashes replaced first. They were replaced by searching the text for
"/", and that search steps over a slash followed by a combining mark:
the two are one character, which is not "/". The file system splits
the name there all the same, so an item named "../" and an accent was
written one folder above the one its download belongs in.

The name is now gone through code point by code point, and what counts
as "." or ".." is decided on its bytes.
2026-11-11 04:07:48 +03:00
..