Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix NoMethodError in jira_plugin_upload exploit module #11784
This adds checks to the functionality that searches responses for a particular value in the
So I didn't actually install Jira to test this, but trying Nokogiri tells me it could return nil:
require 'nokogiri' html = %Q| <html> <head> <title>Hello World</title> </head> <body> <div id="section">Hello World</span> </body> </html> | nodes = Nokogiri::HTML(html) puts nodes.at('invalid').inspect
So my conclusion is the nil checks should work fine so it should be safe to land.