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

Convert input to string before xml escaping #2244

Merged
merged 4 commits into from
Apr 19, 2014
Merged

Convert input to string before xml escaping #2244

merged 4 commits into from
Apr 19, 2014

Conversation

benbalter
Copy link
Contributor

Fixes #2242.

@benbalter benbalter changed the title convert input to string before xml escaping Convert input to string before xml escaping Apr 18, 2014
@parkr
Copy link
Member

parkr commented Apr 18, 2014

Can you check on the travis build failures? Otherwise LGTM!! :-))))))

@benbalter
Copy link
Contributor Author

Can you check on the travis build failures?

e91a908

@@ -93,6 +93,10 @@ def initialize(opts = {})
assert_equal "&lt;code&gt;command &amp;lt;filename&amp;gt;&lt;/code&gt;", @filter.xml_escape("<code>command &lt;filename&gt;</code>")
end

should "not error when xml escaping nil" do
assert_equal "", @filter.xml_escape(nil)
ned
Copy link
Member

Choose a reason for hiding this comment

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

end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer it my way 😄

parkr added a commit that referenced this pull request Apr 19, 2014
@parkr parkr merged commit 702d552 into master Apr 19, 2014
@parkr parkr deleted the xml-escape-nil branch April 19, 2014 18:18
parkr added a commit that referenced this pull request Apr 19, 2014
@parkr
Copy link
Member

parkr commented Apr 19, 2014

Thanks @benbalter!

@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.

xml_escape chokes on nil strings
3 participants