bin/pwn_bdba_scan in pwn-0.5.4 vs bin/pwn_bdba_scan in pwn-0.5.5
- old
+ new
@@ -147,15 +147,10 @@
print 'Looking for Product in Apps by Group...'
loop do
# File encoding conducting by synopsis is kinda goofy.
# The encode space w/ + (which is expected) but dont
# encode + to %2B (whiich _isn't_ expected)
- target_basename = CGI.escape(
- File.basename(target_file)
- ).gsub(
- '%2B',
- '+'
- )
+ target_basename = CGI.unescape_uri_component(File.basename(target_file))
find_product = scan_progress_resp[:products].find { |p| p[:name] == target_basename }
break unless find_product.nil?