# HG changeset patch # User jbe # Date 1426952330 -3600 # Node ID bac6cbdeb05507dac2ca5e401cd2aca62bd0699c # Parent ee7fcdade91d9f1aacd1435b99f0a64054a959e9 Bugfix in request.redirect{...}: allow params to be nil diff -r ee7fcdade91d -r bac6cbdeb055 framework/env/request/redirect.lua --- a/framework/env/request/redirect.lua Sat Mar 21 15:21:03 2015 +0100 +++ b/framework/env/request/redirect.lua Sat Mar 21 16:38:50 2015 +0100 @@ -24,10 +24,10 @@ if type(args.view) ~= "string" then error("No view string passed to request.redirect{...}.") end - if type(args.params) ~= "table" then + if args.params ~= nil and type(args.params) ~= "table" then error("Params array passed to request.redirect{...} is not a table.") end - if args.anchor and type(args.anchor) ~= "string" then + if args.anchor ~= nil and type(args.anchor) ~= "string" then error("Anchor passed to request.redirect{...} must be a string or nil.") end end