X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/34d0bf15a6f4009de376ceed1d7d5cca24a8dfe7..f1e240a3c951aceb1d5d100c199e5a5b8d5eb6ec:/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