mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- @password.to_s (CGI.escape needs a string)
This commit is contained in:
parent
24a93306b2
commit
a103083089
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class LogStash::Inputs::Amqp < LogStash::Inputs::Threadable
|
||||||
@amqpurl = "amqp://"
|
@amqpurl = "amqp://"
|
||||||
if @user
|
if @user
|
||||||
@amqpurl << @user if @user
|
@amqpurl << @user if @user
|
||||||
@amqpurl << ":#{CGI.escape(@password)}" if @password
|
@amqpurl << ":#{CGI.escape(@password.to_s)}" if @password
|
||||||
@amqpurl << "@"
|
@amqpurl << "@"
|
||||||
end
|
end
|
||||||
@amqpurl += "#{@host}:#{@port}#{@vhost}/#{@queue}"
|
@amqpurl += "#{@host}:#{@port}#{@vhost}/#{@queue}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue