Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Add html safe to share_url params
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoliy Kovalchuk committed May 21, 2015
1 parent 9cb920b commit 72bcafd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
* Define network list
* Add to install task sample of view and require assets
* Add recommendation about image size and length of text
* Add version to sharing tags: append ?version=1 to links and assets
* Add version to sharing tags: append ?version=1 to links and assets
* Update facebook info for fetching urls
2 changes: 1 addition & 1 deletion lib/sharing_tags/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def add_params_to_url(url, params = {})
new_query_array = URI.decode_www_form(uri.query || '') + params.to_a
uri.query = URI.encode_www_form(new_query_array)

uri.to_s
uri.to_s.html_safe
rescue URI::Error
# TODO: raise error
url
Expand Down

0 comments on commit 72bcafd

Please sign in to comment.