From af2dad91e142d074d29863d4786d8afdd47965cd Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 16 Aug 2010 02:26:51 +0200 Subject: Unescape paths. --- httpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpd.c b/httpd.c index 49b6b1e..44f7109 100644 --- a/httpd.c +++ b/httpd.c @@ -53,7 +53,9 @@ static gboolean service_incoming(GSocketService *service, * firstline to \0 (HTTP version) */ firstline[g_strv_length(firstline)-1] = '\0'; /* now join from the second string to get the request path */ - gchar *path = g_strjoinv(" ", firstline + 1); + gchar *path_escaped = g_strjoinv(" ", firstline + 1); + gchar *path = g_uri_unescape_string(path_escaped, NULL); + g_free(path_escaped); g_strfreev(firstline); -- cgit v1.2.3