webmcp
diff framework/env/request/handler.lua @ 455:e2389cc82214
Improved include_tempstore argument to request.redirect{...}
author | jbe |
---|---|
date | Thu Jul 21 19:23:23 2016 +0200 (2016-07-21) |
parents | 4e03ecb28665 |
children | dc6d3719f2e7 |
line diff
1.1 --- a/framework/env/request/handler.lua Thu Jul 21 19:19:42 2016 +0200 1.2 +++ b/framework/env/request/handler.lua Thu Jul 21 19:23:23 2016 +0200 1.3 @@ -234,8 +234,13 @@ 1.4 slot.put("</p>") 1.5 end) 1.6 elseif redirect_data then 1.7 - redirect_data = table.new(redirect_data) 1.8 - if not redirect_data.external or redirect_data.include_tempstore then 1.9 + if 1.10 + redirect_data.include_tempstore == true or ( 1.11 + redirect_data.include_tempstore ~= false and 1.12 + not redirect_data.external 1.13 + ) 1.14 + then 1.15 + redirect_data = table.new(redirect_data) 1.16 redirect_data.params = table.new(redirect_data.params) 1.17 local slot_dump = slot.dump_all() 1.18 if slot_dump ~= "" then