mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-03 06:24:20 +08:00
将 node -c 从 shell 字符串 execSync 改为参数数组 spawnSync, 并用 path.resolve + projectRoot 前缀校验替代脆弱的 .. 正则与 手写路径拼接;非法扫描路径改为显式失败,避免假绿。
将 node -c 从 shell 字符串 execSync 改为参数数组 spawnSync, 并用 path.resolve + projectRoot 前缀校验替代脆弱的 .. 正则与 手写路径拼接;非法扫描路径改为显式失败,避免假绿。