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 f01b01a commit 3456293Copy full SHA for 3456293
modules/auxiliary/scanner/http/wp_ti_woocommerce_wishlist_sqli.rb
@@ -69,12 +69,12 @@ def get_share_key
69
json_body = res.get_json_document
70
wishlist_data = json_body['wishlists_data']['products']
71
72
- if wishlist_data && !wishlist_data.empty?
73
- share_key = json_body['wishlist']['share_key']
74
- if share_key
75
- print_good("Share key found: #{share_key}")
76
- return share_key
77
- end
+ next unless wishlist_data && !wishlist_data.empty?
+
+ share_key = json_body['wishlist']['share_key']
+ if share_key
+ print_good("Share key found: #{share_key}")
+ return share_key
78
end
79
80
0 commit comments