Fix a "undefined method to_sym" bug

If something is undetectable, the value may be empty, which triggers
a undefined method error because the regex always assumes there is
something. So instead of +, we use *.
bug/bundler_fix
sinn3r 2013-10-31 14:06:05 -05:00
parent 6e7e5a0ff9
commit 10fd892827
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ module Msf
update_profile(target_profile, :source, 'script')
raw = Rex::Text.decode_base64(Rex::Text.uri_decode(request.body))
raw.split('&').each do |item|
k, v = item.scan(/(\w+)=(.+)/).flatten
k, v = item.scan(/(\w+)=(.*)/).flatten
update_profile(target_profile, k.to_sym, v)
end