Ticket #852 (closed defect: wontfix)

Opened 2 years ago

Last modified 2 years ago

when url_rewrite is used with mod_cml_lua rewritten URL query string is not accessible from LUA

Reported by: lord@… Owned by: jan
Priority: normal Milestone:
Component: mod_cml Version: 1.4.11
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: Blocking:

Description

LUA REQUEST_URI variable contains now URI of orinial URL, before URL rewrting. So if URL rewriting is used, and query string is formed duing rewrting there is no way to access it from LUA. For example, this would not work:

url.rewrite = ("/user/([A-Za-z0-9\_]+)$" => "/test.cml?user=$1")

since in LUA, you will not be able to access 'user' parameter.

More details in forum discussion:

http://forum.lighttpd.net/topic/1745

Attached is a patch which makes both oritinal and rewritten URIs avaliable to LUA.

Attachments

mod_cml_lua_orig_url.diff (0.8 kB) - added by lord@… 2 years ago.
patch

Change History

Changed 2 years ago by lord@…

patch

Changed 2 years ago by jan

  • status changed from new to closed
  • resolution set to wontfix

Please check mod_magnet in the upcoming 1.4.12. It gives you access to all internal variables including the pre- and post-rewrite variables and the query-string.

Add/Change #852 (when url_rewrite is used with mod_cml_lua rewritten URL query string is not accessible from LUA)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.