mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
uridecoding handle plus chars as space
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
03d7e9d331
commit
8b9fe99dee
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ int lws_parse(struct lws *wsi, unsigned char c)
|
|||
ah->frags[ah->nfrag].nfrag = 0;
|
||||
goto swallow;
|
||||
}
|
||||
/* + to space */
|
||||
if (c == '+' && !enc)
|
||||
c = ' ';
|
||||
/* issue the first / always */
|
||||
if (c == '/' && !ah->frag_index[WSI_TOKEN_HTTP_URI_ARGS])
|
||||
wsi->u.hdr.ups = URIPS_SEEN_SLASH;
|
||||
|
|
Loading…
Add table
Reference in a new issue