]> git.r.bdr.sh - rbdr/lyricli.rb/blobdiff - lib/lyricli/util.rb
removing unused variable options, fixes warning in last ruby 1.9.3 branch
[rbdr/lyricli.rb] / lib / lyricli / util.rb
index e7320d0d761f6be4e49b68699d2097a1177b240b..b8b0186638970378f65f356d5c2dc8ac3933df59 100644 (file)
@@ -30,7 +30,7 @@ module Lyricli
     # @param [String] p the parameter to be sanitized
     # @return [String] the sanitized parameter
     def sanitize_param(p)
     # @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
     end
   end
 end