We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a11fea + 16b0ee8 commit f72cb75Copy full SHA for f72cb75
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