ctx7 0.3.12 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -844,7 +844,7 @@ async function installSkillFiles(skillName, files, targetDir) {
|
|
|
844
844
|
const skillDir = resolve(targetDir, skillName);
|
|
845
845
|
for (const file of files) {
|
|
846
846
|
const filePath = resolve(skillDir, file.path);
|
|
847
|
-
if (!filePath.startsWith(skillDir + "/") && filePath !== skillDir) {
|
|
847
|
+
if (!filePath.startsWith(skillDir + "/") && !filePath.startsWith(skillDir + "\\") && filePath !== skillDir) {
|
|
848
848
|
throw new Error(`Skill file path "${file.path}" resolves outside the target directory`);
|
|
849
849
|
}
|
|
850
850
|
const fileDir = dirname3(filePath);
|