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