Permalink
Browse files

Fixed growl vulnerability.

  • Loading branch information...
1 parent 8b6d8e6 commit b87ec3aa68139043ebb1c81ae0280415e3ed5802 @fnando committed Oct 5, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/notifier/growl.rb
View
18 lib/notifier/growl.rb
@@ -11,16 +11,16 @@ def supported?
def notify(options)
register
- command = %W[
- growlnotify
- --name=test_notifier
- --image='#{options[:image]}'
- --priority=2
- --message='#{options[:message]}'
- '#{options[:title]}'
- ].join(" ")
+ command = [
+ "growlnotify",
+ "--name", "test_notifier",
+ "--image", options[:image],
+ "--priority", "2",
+ "--message", options[:message],
+ options[:title]
+ ]
- Thread.new { `#{command}` }
+ Thread.new { system(*command) }
end
def register

0 comments on commit b87ec3a

Please sign in to comment.