47ng / 47ng/nuqs

nginx servers return errors when special characters {}|\^ are present in query parameters

Open
#1,069 1 comment 0 reactions 0 assignees View on GitHub
cannot-reproduce
Dominant language
TypeScript
Stars
10.8k
Forks
294
Avg merge
1d 16h
Merged PRs (30d)
21

Description

When query parameters contain special characters like {}|\^, some nginx servers return HTTP errors, making the application inaccessible. This issue occurs because these characters are not properly encoded according to RFC 3986 standards.

### Proposed Solution
Add {}|\^? to the list of characters encoded by the encodeQueryValue function to ensure RFC 3986 compliance and server compatibility.
I have already submitted a pull request #1068 that implements this fix. Please review and consider merging this change to address the nginx compatibility issues.

Contributor guide

Open the contributing guide

Research direction

The issue references a pull request #1068 that is already submitted. The fix involves modifying the `encodeQueryValue` function to encode additional special characters. To understand the change, review the linked PR and the function's location in the codebase. The work is already claimed and the thread is quiet, so this is not a starting point for a new contributor.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx, typescript
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.