diff options
-rw-r--r-- | src/about.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/about.c b/src/about.c index c00137d..e4499f2 100644 --- a/src/about.c +++ b/src/about.c @@ -28,43 +28,7 @@ #include "about/paths.h" #include "application.h" #include "resources.h" - -static GHashTable * -parse_query_string(gchar *str) -{ - GHashTable *hash_table; - gchar *key; - gchar *val; - - hash_table = g_hash_table_new_full(g_str_hash, g_str_equal, - g_free, g_free); - - while (*str) { - key = str; - for (; *str && *str != '='; ++str); - if (!*str) { - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), NULL); - break; - } - *str = '\0'; - val = ++str; - for (; *str && *str != '&'; ++str); - if (!*str) { - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), - g_uri_unescape_string(val, NULL)); - break; - } - *str = '\0'; - g_hash_table_insert(hash_table, - g_uri_unescape_string(key, NULL), - g_uri_unescape_string(val, NULL)); - ++str; - } - - return hash_table; -} +#include "string-utils.h" void mq_about_request(WebKitURISchemeRequest *request, MqApplication *application) |