Skip to content

Commit 16b0ee8

Browse files
committed
fixed SRE issues
1 parent 1a11fea commit 16b0ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/app/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export default class Create extends BaseCommand<typeof Create> {
232232
// Get the directory inside the zip file
233233
const zipEntries = zip.getEntries();
234234
const firstEntry = zipEntries[0];
235-
const sourcePath = resolve(dataDir, firstEntry.entryName.split("/")[0]);
235+
const sourcePath = resolve(sanitizePath(dataDir), sanitizePath(firstEntry.entryName.split("/")[0]));
236236

237237
if (this.flags["data-dir"] && !existsSync(this.flags["data-dir"])) {
238238
mkdirSync(this.flags["data-dir"], { recursive: true });

0 commit comments

Comments
 (0)