6

I am running the command bundle install and keep getting the following error

Please CGI escape your usernames and passwords before setting them for authentication.

I am unsure how I could go about CGI escaping my credentials- any ideas? Thanks

Samantha
  • 91
  • 2
  • 7

1 Answers1

5

You can do this in irb with Ruby's CGI::Util module:

$ irb
irb(main):001:0> require "cgi"
=> true
irb(main):002:0> CGI.escape "foo@example.com"
=> "foo%40example.com"

Simon
  • 1,716
  • 1
  • 21
  • 37