{
qstring = query_string;
}
+
params = g_strsplit (qstring, "&", -1);
l = g_strv_length (params);
for (i = 0; i < l; i++)
g_value_init (gvaltmp, G_TYPE_STRING);
- if (parts[1] == NULL
+ if (g_strv_length (parts) == 1
+ || parts[1] == NULL
|| g_strcmp0 (parts[1], "") == 0)
{
g_value_set_string (gvaltmp, g_strdup (""));
g_value_init (gval, G_TYPE_STRING);
- if (parts[1] == NULL
+ if (g_strv_length (parts) == 1
+ || parts[1] == NULL
|| g_strcmp0 (parts[1], "") == 0)
{
g_value_set_string (gval, g_strdup (""));
if (zakcgimain != NULL)
{
- priv->stdin = g_memdup (ret, bytesread);
+ priv->stdin = g_memdup (ret, l + 1);
}
return ret;