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

forward slashes in repository slug breaks workshop data submission #18

Open
tobyhodges opened this issue Aug 25, 2021 · 0 comments
Open
Assignees

Comments

@tobyhodges
Copy link
Member

See #11 for an example. Repo slugs submitted with a trailing / result in a misformed path for the resulting YAML data file. I think there are two ways to address this:

  1. sanitize the input to strip the trailing slash. might be possible using the type: slugify option in the Staticman config, depending on how slug handles forward slashes.
  2. place a prominent warning next to the form field that will encourage community members to avoid submitting slugs with slashes in them
@tobyhodges tobyhodges self-assigned this Aug 25, 2021
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

No branches or pull requests

1 participant