From 415907a128dd8516215d37d87389f480e64b95c8 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 11 Apr 2014 16:51:45 +0300 Subject: [PATCH] [mms-ofono] Remove leaving and trailing spaces from the URLs libsoup won't do it for us. --- mms-ofono/src/mms_ofono_connection.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mms-ofono/src/mms_ofono_connection.c b/mms-ofono/src/mms_ofono_connection.c index 9666806..9291654 100644 --- a/mms-ofono/src/mms_ofono_connection.c +++ b/mms-ofono/src/mms_ofono_connection.c @@ -161,14 +161,16 @@ mms_ofono_connection_new( value = g_variant_lookup_value(properties, OFONO_CONTEXT_PROPERTY_MMS_PROXY, G_VARIANT_TYPE_STRING); if (value) { - conn->mmsproxy = g_strdup(g_variant_get_string(value, NULL)); + conn->mmsproxy = g_strstrip(g_strdup(g_variant_get_string( + value, NULL))); MMS_DEBUG("MessageProxy: %s", conn->mmsproxy); g_variant_unref(value); } value = g_variant_lookup_value(properties, OFONO_CONTEXT_PROPERTY_MMS_CENTER, G_VARIANT_TYPE_STRING); if (value) { - conn->mmsc = g_strdup(g_variant_get_string(value, NULL)); + conn->mmsc = g_strstrip(g_strdup(g_variant_get_string( + value, NULL))); MMS_DEBUG("MessageCenter: %s", conn->mmsc); g_variant_unref(value); }