We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289f47f commit 9907f94Copy full SHA for 9907f94
lib/msf/core/exploit/remote/http/spip.rb
@@ -52,7 +52,7 @@ def spip_plugin_version(plugin_name)
52
53
composed_by = res.headers['Composed-By']
54
# Case 1: Check if 'Composed-By' header is present and not empty
55
- return parse_plugin_version(composed_by, plugin_name) if composed_by && !composed_by.empty?
+ return parse_plugin_version(composed_by, plugin_name) if composed_by&.present?
56
57
composed_by =~ %r{(https?://[^\s]+/local/config\.txt)}i
58
config_url = ::Regexp.last_match(1)
0 commit comments