- @password.to_s (CGI.escape needs a string)

This commit is contained in:
Jordan Sissel 2013-01-10 10:24:53 -08:00
parent 24a93306b2
commit a103083089

View file

@ -117,7 +117,7 @@ class LogStash::Inputs::Amqp < LogStash::Inputs::Threadable
@amqpurl = "amqp://"
if @user
@amqpurl << @user if @user
@amqpurl << ":#{CGI.escape(@password)}" if @password
@amqpurl << ":#{CGI.escape(@password.to_s)}" if @password
@amqpurl << "@"
end
@amqpurl += "#{@host}:#{@port}#{@vhost}/#{@queue}"