From: Andrea Zagli Date: Mon, 13 Apr 2020 07:18:59 +0000 (+0200) Subject: Read always only one line for the form parameter, instead of the all block (multiline). X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=f60c1fd6e96315055abdd5a7693adc700c1ef6ab;p=libzakcgi Read always only one line for the form parameter, instead of the all block (multiline). --- 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'; }