Skip to content

Sanitize project name parameter. #2

Merged
merged 1 commit into from May 24, 2012
+1 −1
View
2 lib/flowdock_listener.rb
@@ -70,7 +70,7 @@ def send_message!(subject, body)
:from_name => @user_name,
:subject => subject,
:content => body,
- :project => @project_name,
+ :project => @project_name.gsub(/[^\w\s]/,' '),
:link => @url
}
Something went wrong with that request. Please try again.