From: Andrea Zagli Date: Sun, 15 May 2016 09:44:24 +0000 (+0200) Subject: Use of function ZakFormElement::unformat in ZakCgiForm::bind. X-Git-Tag: v0.1.0~3^2~4 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=7e3cad45b036f6480aac6c8c7d8b9cea60abffe9;p=libzakcgi Use of function ZakFormElement::unformat in ZakCgiForm::bind. --- diff --git a/src/form.c b/src/form.c index 8cc1b52..6b9852d 100644 --- a/src/form.c +++ b/src/form.c @@ -138,6 +138,7 @@ zak_cgi_form_bind (ZakCgiForm *zakcgiform) guint i; GValue *gval; + gchar *value; ZakCgiFormPrivate *priv; @@ -153,7 +154,8 @@ zak_cgi_form_bind (ZakCgiForm *zakcgiform) gval = zak_cgi_main_get_stdin_field (priv->zakcgimain, zak_cgi_form_element_get_id (element)); if (gval != NULL) { - zak_form_element_set_value (ZAK_FORM_ELEMENT (element), g_value_get_string (gval)); + value = zak_form_element_unformat (ZAK_FORM_ELEMENT (element), g_value_get_string (gval)); + zak_form_element_set_value (ZAK_FORM_ELEMENT (element), value); } } }