Commit bdf9e4ed authored by Slava Monich's avatar Slava Monich

Merge pull request #21 from monich/trim-url

[mms-ofono] Remove leaving and trailing spaces from the URLs
parents 9c3c12fe 415907a1
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment