-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument Delimiter #77
Comments
On Wed, Jan 4, 2012 at 6:03 PM, dakanji
How about providing a config directive to control this on the location
But only one character delimiter is supported due to performance Thanks! |
Hi. That will be a big improvement for me although it would be far better if it could be an additional delimiter to "&" rather than a an override/replacement. As said though, a replacement would still be great. Thanks |
On Wed, Jan 4, 2012 at 9:59 PM, dakanji
Okay, I'll make lua_arg_separators accept multiple characters:
Then both "&" and ";" will be honored as query string separators. Do Best, |
On Wed, Jan 4, 2012 at 10:14 PM, agentzh [email protected] wrote:
Sorry, it should be in the plural form:
Regards, |
Do I like it? I am doing cartwheels in anticipation!! I take it that it goes without saying that you will handle the fact that "&" is the default. I suppose there are two approaches:
Seems you are going for #2 which I suppose is more flexible. |
On Wed, Jan 4, 2012 at 10:21 PM, dakanji
Yeah, I meant #2 :) Will you provide a patch for it? ;) Regards, |
I would when I go beyond "Hello World" in my "C" programing. Maybe sometime before December if things go well :) |
On Wed, Jan 4, 2012 at 10:30 PM, dakanji
Heh. I'll look into this by this weekend. I have something else to do Regards, |
Not making much progress in learning 'C' ... so still waiting :) |
Managed to work around this PITA with the following rewrite_by_lua ' Love the flexibility of the module! |
Unfortunately, the solution posted is fine for GET requests but is playing havoc with POST requests. |
This variant seems to work better. Handles POST request using location.capture rewrite_by_lua ' Leaving the issue open as the best answer will be something within the module itself. Also raised a ticket on additional delimiters with the main team. Fingers crossed! EDIT: Doesn't work as expected in all cases. |
Guess it's about time to close this one down! |
Hi.
I have a PHP application that uses ";" to delimit GET arguments as in "/index.php?a=1;b=2". It seems that get I run ngx.req.get_uri_args, this gets passed as a single argument "a=1;b=2" instead of two, "a=1" and "b=2".
Using ngx_lua to filter inputs, I am getting many false positives because of this. Is it possible to tell the app to consider other delimiters apart from "&" as it is in PHP?
Thanks
The text was updated successfully, but these errors were encountered: