From f60c1fd6e96315055abdd5a7693adc700c1ef6ab Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 13 Apr 2020 09:18:59 +0200 Subject: [PATCH] Read always only one line for the form parameter, instead of the all block (multiline). --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 953b794..e2ccd39 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2019 Andrea Zagli + * Copyright (C) 2015-2020 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -1098,7 +1098,7 @@ static GHashTable } else { - param_value = g_data_input_stream_read_line (dataistream, &length, NULL, NULL); + param_value = g_data_input_stream_read_upto (dataistream, "", -1, &length, NULL, NULL); param_value[length - 1] = '\0'; } -- 2.49.0