Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sanitize the imported environment filename before writing it to disk #665

Closed
wants to merge 1 commit into from

Conversation

cardonator
Copy link
Contributor

Description

Currently if the environment name has a bad character (like /) in it then it fails to write to the filesystem. I'm proposing this however I don't think this is functional to merge because of #663 right now. The Environment name on the UI ends up being the filename and it really should be a name stored in the environment file and not just the filename.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

@Its-treason
Copy link
Member

Its-treason commented Oct 18, 2023

Hey @cardonator,

In #349 I already implemented a meta tag/grammar in the environment files to save the name. With this, you can use any character in the environment name. The PR is planned to be reviewed and merged before the v1 release, so it should be shipped shortly!

I really appreciate your afford, but I think your PR obsolete.

@cardonator
Copy link
Contributor Author

@Its-treason sweet, thanks. You're right that the proposed change will make this change obsolete. I'll take a look at and comment on that other PR.

@cardonator cardonator closed this Oct 18, 2023
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.

2 participants