Skip to content

onlyworlds 0.159.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:38
· 9 commits to main since this release
  • Fixed: a folder write_folder writes always packs into a world file. write_folder, and so export_world and the import doors, now also refuse an element id whose <id>.json the world file's name check refuses (folder spec 3.2): one holding <, >, ", |, ? or *, a control character from U+007F to U+009F, or a Windows device name such as con. Before, such an id was written (on Windows, a?b.json stopped the write part-way with an OSError), and world_file_bytes then refused the folder. The refusal says why in the archive's words, as "a?b.json" it holds a reserved or control character. An id ending in a dot or a space is still written, since its file name ends in .json. The shared cases (tests/fixtures/unsafe-ids.cases.json, the same bytes as the npm SDK's) move with it: 22 refused, 5 written.