You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (end($puts) == '' && !empty($inputFormat) || !empty($xmlJsonMatch)) {
Note that, if the request body is foo=bar instead of foo= (and, of course, the content-length header is updated to 7), then the bug will not happen, because end($puts) == '' will be false.
The text was updated successfully, but these errors were encountered:
In order to reproduce this bug, try sending this request:
You can save it to a file and then run
{ cat foobar.txt ; sleep 10 ; } | telnet 127.0.0.1 80
The response is:
This response is wrong for many reasons:
This bug happens because of the following code from https://github.com/frapi/frapi/blob/master/src/frapi/library/Frapi/Controller/Main.php#L351 :
Note that, if the request body is
foo=bar
instead offoo=
(and, of course, thecontent-length
header is updated to 7), then the bug will not happen, becauseend($puts) == ''
will be false.The text was updated successfully, but these errors were encountered: