47ng / 47ng/nuqs

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

Abierto
#1,069 1 comentario 0 reacciones 0 asignados Ver en GitHub
cannot-reproduce
Lenguaje dominante
TypeScript
Estrellas
10.8k
Forks
294
Merge medio
1 d 16 h
PR fusionados (30 d)
21

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
nginx, typescript
Área
api, backend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.