X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..178ffe1377a571b7ce0a73186c03b5e296ac8922:/lib/lyricli/util.rb diff --git a/lib/lyricli/util.rb b/lib/lyricli/util.rb index e7320d0..b8b0186 100644 --- a/lib/lyricli/util.rb +++ b/lib/lyricli/util.rb @@ -30,7 +30,7 @@ module Lyricli # @param [String] p the parameter to be sanitized # @return [String] the sanitized parameter def sanitize_param(p) - URI.encode_www_form_component(p.gsub(/ /, "+")).gsub("%2B", "+") + CGI.escape(p.gsub(/ /, "+")).gsub("%2B", "+") end end end