openresty / openresty/lua-nginx-module
unable to encode | using ngx.encode_args
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
We are trying to encode url arguments using ngx.encode_args but we find few special characters like |, @, ~ remains as is by the function and passed without encoding from the function. This is impacting our application as characters like | are not accepted by application code and failing the request with 400.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the ngx.encode_args entry point and determine how special characters such as |, @, and ~ are handled. Check the existing coverage for argument encoding, establish the expected URL-encoding behavior, and add a regression case showing that the affected characters are handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100