prevent DCE

This commit is contained in:
cyn 2024-10-11 11:23:19 -07:00 committed by GitHub
parent b9304bbeca
commit c28ce60738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ using StringTools;
/**
* Utilities for reading and writing files on various platforms.
*/
class FileUtil
@:keep class FileUtil
{
public static final FILE_FILTER_FNFC:FileFilter = new FileFilter("Friday Night Funkin' Chart (.fnfc)", "*.fnfc");
public static final FILE_FILTER_JSON:FileFilter = new FileFilter("JSON Data File (.json)", "*.json");
@ -962,7 +962,7 @@ class FileUtil
* Utilities for reading and writing files on various platforms.
* Wrapper for `FileUtil` that sanitizes paths for script safety.
*/
class FileUtilSandboxed
@:keep class FileUtilSandboxed
{
/**
* Prevent paths from exiting the root.