# File lib/rfuzz/client.rb, line 145 145: def query_parse(qs, d = '&;') 146: params = {} 147: (qs||'').split(/[#{d}] */n).inject(params) { |h,p| 148: k, v=unescape(p).split('=',2) 149: if cur = params[k] 150: if cur.class == Array 151: params[k] << v 152: else 153: params[k] = [cur, v] 154: end 155: else 156: params[k] = v 157: end 158: } 159: 160: return params 161: end