Skip to content

Commit

Permalink
Use safe_x
Browse files Browse the repository at this point in the history
  • Loading branch information
MalloZup committed Feb 16, 2021
1 parent d413621 commit 51b6e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawk/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def login_from_cookie
user = cookies['hawk_remember_me_id']
return if user.nil?
# read from attrd
values, _, _ = Util.capture3("/usr/sbin/attrd_updater", "-R", "-Q","-A", "-n", "hawk_session_#{user}").scan(/value=\"(.*)\"/).flatten(1)
values = Util.safe_x("/usr/sbin/attrd_updater", "-R", "-Q", "-A", "-n", "hawk_session_#{user}").scan(/value=\"(.*)\"/).flatten(1)
user if values.include? cookies['hawk_remember_me_key']
end

Expand Down

0 comments on commit 51b6e37

Please sign in to comment.