Use URI.encode_uri_component when generating share urls
This commit is contained in:
parent
0a4442781c
commit
a0e78a5caf
2 changed files with 8 additions and 3 deletions
|
@ -35,8 +35,8 @@ module SocialShareButtonHelper
|
|||
|
||||
def generate_share_url(site, title, url)
|
||||
site = site.to_sym
|
||||
title = URI.encode_www_form_component(title)
|
||||
url = URI.encode_www_form_component(url)
|
||||
title = URI.encode_uri_component(title)
|
||||
url = URI.encode_uri_component(url)
|
||||
|
||||
case site
|
||||
when :email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue