Use URI.encode_uri_component when generating share urls

This commit is contained in:
Anton Khorev 2025-02-01 21:15:37 +03:00
parent 0a4442781c
commit a0e78a5caf
2 changed files with 8 additions and 3 deletions

View file

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