mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-19 08:53:09 +01:00
With Allow Scripts to Write Files and Access Network on, a script could write any path, including the app's own settings folder. Files there are run or loaded without asking: Scripts/Startup at launch, Scripts/Shutdown at quit, ScriptUI Panels from the Window menu, and helpers/ and Plug-ins/ hold programs the app starts. One write therefore bought code execution at every later launch, even after the preference was turned off. Every script write under the settings folder is now refused whatever the preference says. The check is in check_access, so write, append, copy destinations, mkdir and remove all pass through it, and the path is normalized first so a symlink cannot point around it. Writes elsewhere are unchanged.