diff options
author | elijah <elijah@riseup.net> | 2013-05-19 22:33:25 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-05-19 22:33:25 -0700 |
commit | 63ab91606173a34bb34dfa61164dc20e0a505e77 (patch) | |
tree | 277b40cfd2d35442c18f822fe7db4f5a0c413480 /lib | |
parent | f9d6b218be3bdbb2d3c544849b2ab92348d0e394 (diff) |
fix bug with empty request parameters
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nickserver/server.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nickserver/server.rb b/lib/nickserver/server.rb index 2f4d4f0..6234fd6 100644 --- a/lib/nickserver/server.rb +++ b/lib/nickserver/server.rb @@ -72,8 +72,10 @@ module Nickserver elsif @http_post_content params = CGI.parse(@http_post_content) end - if params["address"] && params["address"].any? + if params && params["address"] && params["address"].any? return params["address"].first + else + return nil end end |