diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 02:26:51 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-16 02:26:51 +0200 |
commit | af2dad91e142d074d29863d4786d8afdd47965cd (patch) | |
tree | d1a3f29c967e79cb9b09848f1cbaf8a1b98d0233 | |
parent | 1a79de743029449f0728021157b324d8a14bef64 (diff) |
Unescape paths.
-rw-r--r-- | httpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |