Skip to content

Commit 3e46d04

Browse files
authored
Merge pull request #851 from jplindquist/check_password
Escape double quotes in password during comparison
2 parents 13aa52f + 9b0e06d commit 3e46d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/rabbitmq_user/rabbitmqctl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def check_password(password)
6969
check_access_control = [
7070
'rabbit_access_control:check_user_pass_login(',
7171
%[list_to_binary("#{@resource[:name]}"), ],
72-
%[list_to_binary("#{password}")).]
72+
%[list_to_binary("#{password.to_s.gsub('"', '\\"')}")).]
7373
]
7474

7575
response = rabbitmqctl('eval', check_access_control.join)

0 commit comments

Comments
 (0)