From 8b10fb2bd9996360c79dee06a37550c216760ed9 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 4 May 2016 16:13:26 +0200 Subject: [PATCH] ZakCgiSession: use of GKeyFile::get_string to handle escaped characters. --- src/session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/session.c b/src/session.c index d2e940a..ee0d63a 100644 --- a/src/session.c +++ b/src/session.c @@ -140,14 +140,14 @@ ZakCgiSession } else { - val = g_key_file_get_value (priv->kfile, "ZAKCGI", "REMOTE_ADDR", NULL); + val = g_key_file_get_string (priv->kfile, "ZAKCGI", "REMOTE_ADDR", NULL); if (val == NULL || g_strcmp0 (val, g_getenv ("REMOTE_ADDR")) != 0) { zak_cgi_session_close (zak_cgi_session); } - val = g_key_file_get_value (priv->kfile, "ZAKCGI", "TIMESTAMP", NULL); + val = g_key_file_get_string (priv->kfile, "ZAKCGI", "TIMESTAMP", NULL); if (val == NULL) { zak_cgi_session_close (zak_cgi_session); @@ -325,7 +325,7 @@ gchar ret = NULL; if (priv->kfile != NULL) { - ret = g_key_file_get_value (priv->kfile, "SESSION", name, NULL); + ret = g_key_file_get_string (priv->kfile, "SESSION", name, NULL); } return ret; -- 2.49.0