bin/pwn_bdba_scan in pwn-0.4.960 vs bin/pwn_bdba_scan in pwn-0.4.961

- old
+ new

@@ -144,11 +144,13 @@ # multiple times to find the product find_product = nil find_product_attempts = scan_attempts print 'Looking for Product in Apps by Group...' loop do - find_product = scan_progress_resp[:products].find { |p| p[:name] == CGI.escape(File.basename(target_file)) } - find_product = scan_progress_resp[:products].find { |p| p[:name] == File.basename(target_file) } if find_product.nil? + target_basename = File.basename(target_file) + + find_product = scan_progress_resp[:products].find { |p| p[:name] == target_basename } + # find_product = scan_progress_resp[:products].find { |p| p[:name] == CGI.escape(target_basename) } if find_product.nil? break unless find_product.nil? find_product_attempts += 1 raise "ERROR: Cannot Find Product in Apps by Group:\n#{scan_progress_resp}" if find_product_attempts >= scan_attempts