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 486f8cd commit 889de05Copy full SHA for 889de05
lib/msf/core/db_manager/module_cache.rb
@@ -243,12 +243,6 @@ def search_modules(search_string)
243
@types << formatted_values
244
end
245
246
-
247
- # unioned_conditions = union_conditions.inject { |union, condition|
248
- # union.or(condition)
249
- # }
250
- #
251
- # @query = @query.where(unioned_conditions).to_a.uniq { |m| m.fullname }
252
253
254
@query = @query.module_arch( @archs.to_a.flatten ) if @archs.any?
@@ -259,7 +253,7 @@ def search_modules(search_string)
259
@query = @query.module_type( @types.to_a.flatten ) if @types.any?
260
@query = @query.module_stance( @stances.to_a.flatten ) if @stances.any?
261
255
@query = @query.module_ref( @refs.to_a.flatten ) if @refs.any?
262
256
+
263
257
@query.uniq
264
258
265
0 commit comments