X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..08a2ff7f2801498d5cf8f387e8c881ee1cda9a3c:/lib/lyricli/util.rb?ds=sidebyside 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