Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characters duplicate, newline char gets deleted when handling multi-line string from POST request #252

Open
ghost opened this issue Jul 27, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2019

When string with empty lines between lines with text is sent as a param of request (e.g. data from webform), the second and every next line with text begins with duplicated characters. Furthermore, the empty lines get deleted.

Example:
we send request through webform with method=post

test test


test test test


test test test test

the program calls onion_request_get_post, which returns

test test
tetest test test
tetest test test test
  • Version: 0.8.0
  • Code of a simple program that triggers the bug is attached. It's .txt instead of .c as GitHub doesn't allow that.
  • Steps to trigger the bug are outlined above and in the program. I'm running Linux on i686 architecture in case it would turn out to be architecture-bound.

code.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants