libwebsockets
Lightweight C library for HTML5 websockets
|
%00 is considered illegal in
%00 is valid in
When the parser sees %00 where it is not allowed, it simply drops the connection.
urlargs are allowed to contain non-NUL terminated binary. So it is important to use the length-based urlarg apis
The non-length based urlarg api
...is soft-deprecated, it's still allowed but it will be fooled by the first %00 seen in the argument into truncating the argument. Use lws_get_urlarg_by_name_safe()
instead.