lib/plezi/server/helpers/http.rb in plezi-0.7.1 vs lib/plezi/server/helpers/http.rb in plezi-0.7.2

- old
+ new

@@ -77,11 +77,11 @@ p = param_name.gsub(']',' ').split(/\[/) val = rubyfy! param_value p.each_index { |i| p[i].strip! ; n = p[i].match(/^[0-9]+$/) ? p[i].to_i : p[i].to_sym ; p[i+1] ? [ ( a[n] ||= ( p[i+1] == ' ' ? [] : {} ) ), ( a = a[n]) ] : ( a.is_a?(Hash) ? (a[n] ? (a[n].is_a?(Array) ? (a << val) : a[n] = [a[n], val] ) : (a[n] = val) ) : (a << val) ) } rescue Exception => e Plezi.error e - Plezi.error "(Silent): paramaters parse error for #{param_name} ... maybe conflicts with a different set?" + Plezi.error "(Silent): parameters parse error for #{param_name} ... maybe conflicts with a different set?" target_hash[param_name] = rubyfy! param_value end end def decode object, decode_method = :form @@ -172,11 +172,9 @@ string = true elsif string == 'false' string = false elsif string.match(/[0-9]/) && !string.match(/[^0-9]/) string = string.to_i - elsif string.match(/[0-9]/) && !string.match(/[^0-9\.]/) - string = string.to_f end string end end