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

Collections with dots #2552

Merged
merged 3 commits into from
Jun 28, 2014
Merged

Collections with dots #2552

merged 3 commits into from
Jun 28, 2014

Conversation

parkr
Copy link
Member

@parkr parkr commented Jun 28, 2014

Fixes #2548.

  • Don't try to read in directories as documents
  • Allow collection labels to have dots

@@ -17,15 +17,15 @@ def fixture_site(overrides = {})
end

should "sanitize the label name" do
assert_equal @collection.label, "etcpassword"
assert_equal @collection.label, "....etcpassword"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gregose If a collection label allows "." but not "/", is it still safe?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine. Where ever this is used, the full canonicalized path should still be checked before file access.

@parkr parkr merged commit 7eb5e07 into master Jun 28, 2014
@parkr parkr deleted the collections-with-dots branch June 28, 2014 20:58
parkr added a commit that referenced this pull request Jun 28, 2014
@parkr parkr added this to the 2.1 milestone Jun 28, 2014
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error having folders with dots in collections
3 participants