We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a11fea commit 16b0ee8Copy full SHA for 16b0ee8
src/commands/app/create.ts
@@ -232,7 +232,7 @@ export default class Create extends BaseCommand<typeof Create> {
232
// Get the directory inside the zip file
233
const zipEntries = zip.getEntries();
234
const firstEntry = zipEntries[0];
235
- const sourcePath = resolve(dataDir, firstEntry.entryName.split("/")[0]);
+ const sourcePath = resolve(sanitizePath(dataDir), sanitizePath(firstEntry.entryName.split("/")[0]));
236
237
if (this.flags["data-dir"] && !existsSync(this.flags["data-dir"])) {
238
mkdirSync(this.flags["data-dir"], { recursive: true });
0 commit comments