# HG changeset patch # User jbe # Date 1350315870 -7200 # Node ID dd21d2e06a954a16e98136c269f2caf9d75e8931 # Parent e75abc61d135bc4afab8ecf76b3f6df2ac205560 In case of WebMCP based URL path parsing: Allow id to also be set by "_webmcp_id" parameter diff -r e75abc61d135 -r dd21d2e06a95 framework/env/request/__init.lua --- a/framework/env/request/__init.lua Mon Oct 15 17:07:20 2012 +0200 +++ b/framework/env/request/__init.lua Mon Oct 15 17:44:30 2012 +0200 @@ -61,6 +61,10 @@ request._is_404 = true end parse() + -- allow id to also be set by "_webmcp_id" parameter + if cgi.params._webmcp_id ~= nil then + request._id = cgi.params._webmcp_id + end depth = 0 for match in string.gmatch(path, "/") do depth = depth + 1