mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 09:44:24 +00:00
Reject saved ids whose namespace or path could leave the world's storage
The id names the stored file, so a namespace of .. must be rejected as well as a path segment.
This commit is contained in:
1 parent
a0fcb74365
commit
cf0e49e34d
3 files changed
+7
-7
No files matched your search
@@ -368,7 +368,7 @@ waves.record(now); // changed in pl
|
||||
one wrote.
|
||||
- `Codec.write` may run while module threads change the value, so it must read it safely. A stored payload the codec
|
||||
rejects is logged and replaced with `initial`.
|
||||
- The id names the stored file, so its path has no empty, `.` or `..` segment.
|
||||
- The id names the stored file, so none of its segments is empty, `.` or `..`.
|
||||
|
||||
A module that wants to act when the host loads a pack or starts or stops a world registers a `ModuleLifecycle`. Every
|
||||
hook does nothing by default, and a module class may implement it and register itself:
|
||||
|
||||
Reference in new issue
Block a user