increased buffer size, added acceptable character.

This commit is contained in:
Martin Preuss
2026-05-29 16:15:52 +02:00
parent ad90f2c120
commit aeb0974043

View File

@@ -205,7 +205,7 @@ int AQCGI_ParseUrlEncoded(const char *s, int contentLength, GWEN_DB_NODE *dbDeco
if (nameLen && valueLen) {
char sNameBuf[32];
char sValueBuf[64];
char sValueBuf[128];
if (_unescapeUrlEncoded(sNameStart, nameLen, sNameBuf, sizeof(sNameBuf))>=0 &&
_unescapeUrlEncoded(sValueStart, valueLen, sValueBuf, sizeof(sValueBuf))>=0)
@@ -373,7 +373,8 @@ int _unescapeUrlEncoded(const char *src, unsigned int srclen, char *buffer, unsi
x=='?' ||
x=='+' ||
x=='-' ||
x=='_'
x=='_' ||
x=='/'
) {
if (size<(maxsize-1)) {
buffer[size++]=(x=='+')?' ':x;