increased buffer size, added acceptable character.
This commit is contained in:
@@ -205,7 +205,7 @@ int AQCGI_ParseUrlEncoded(const char *s, int contentLength, GWEN_DB_NODE *dbDeco
|
|||||||
|
|
||||||
if (nameLen && valueLen) {
|
if (nameLen && valueLen) {
|
||||||
char sNameBuf[32];
|
char sNameBuf[32];
|
||||||
char sValueBuf[64];
|
char sValueBuf[128];
|
||||||
|
|
||||||
if (_unescapeUrlEncoded(sNameStart, nameLen, sNameBuf, sizeof(sNameBuf))>=0 &&
|
if (_unescapeUrlEncoded(sNameStart, nameLen, sNameBuf, sizeof(sNameBuf))>=0 &&
|
||||||
_unescapeUrlEncoded(sValueStart, valueLen, sValueBuf, sizeof(sValueBuf))>=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=='-' ||
|
||||||
x=='_'
|
x=='_' ||
|
||||||
|
x=='/'
|
||||||
) {
|
) {
|
||||||
if (size<(maxsize-1)) {
|
if (size<(maxsize-1)) {
|
||||||
buffer[size++]=(x=='+')?' ':x;
|
buffer[size++]=(x=='+')?' ':x;
|
||||||
|
|||||||
Reference in New Issue
Block a user