Skip to content

Commit 9907f94

Browse files
committed
.
1 parent 289f47f commit 9907f94

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/core/exploit/remote/http

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/remote/http/spip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def spip_plugin_version(plugin_name)
5252

5353
composed_by = res.headers['Composed-By']
5454
# 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?
55+
return parse_plugin_version(composed_by, plugin_name) if composed_by&.present?
5656

5757
composed_by =~ %r{(https?://[^\s]+/local/config\.txt)}i
5858
config_url = ::Regexp.last_match(1)

0 commit comments

Comments
 (0)