Skip to content

fix(cli): reject path-like project names in init - #589

Open
bhuvan-somisetty wants to merge 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/init-project-name
Open

bhuvan-somisetty wants to merge 1 commit into
ControlCore-Project:devfrom
bhuvan-somisetty:fix/init-project-name

Conversation

@bhuvan-somisetty

Copy link
Copy Markdown

Fixes #588.

concore init now rejects project names that contain path separators or are ./.., so a name like ../x no longer creates a project outside the current directory. The check is shared by the normal and interactive paths.

Added a regression test for init ../x.

@bhuvan-somisetty

Copy link
Copy Markdown
Author

Small fix for #588, so init can't create folders outside the current directory. PTAL when you get a chance @pradeeban

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant