Skip to content

Commit

Permalink
[mms-ofono] Remove leaving and trailing spaces from the URLs
Browse files Browse the repository at this point in the history
libsoup won't do it for us.
  • Loading branch information
monich committed Apr 11, 2014
1 parent cde58d9 commit 415907a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mms-ofono/src/mms_ofono_connection.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 415907a

Please sign in to comment.