# File lib/rfuzz/client.rb, line 131 131: def query_parse(qs, d = '&;') 132: params = {} 133: (qs||'').split(/[#{d}] */n).inject(params) { |h,p| 134: k, v=unescape(p).split('=',2) 135: if cur = params[k] 136: if cur.class == Array 137: params[k] << v 138: else 139: params[k] = [cur, v] 140: end 141: else 142: params[k] = v 143: end 144: } 145: 146: return params 147: end