I've made a small change to the lua script 'cause I was having some
trouble parsing URL's where I had some query strings like "controller/
action/?something=somethingelse". I know it's not the common usage,
but sometimes, when delivering other URL's on your query string for
instance, you can't go the Cake way.

So basically where it says:
lighty.env["uri.query"] = "url=" .. lighty.env["request.uri"]

I've changed to:
lighty.env["uri.query"] = "url=" .. string.gsub(lighty.env
["request.uri"], "%?", "&")

Just for you to know, you could use the url like "controller/action/
&something=somethingelse" and that would work, but I thought that
would be irregular so I made this small patch if you can call it
that...

If it is usefull for someone, let me know! Bye

-- Éber Freitas Dias
-- www.eberfdias.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to