diff options
author | Dan Williams <dcbw@redhat.com> | 2013-05-30 23:51:05 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-05-31 13:13:09 -0500 |
commit | 93fcaf93ce92aa8b335705e66c993dc6f9e628b0 (patch) | |
tree | e824c5f1d0ea890f269711d46ac1f5ff67e5b559 /src/mm-modem-helpers.c | |
parent | 67d3ed11d383b591d8fec4810eef1d2c9ab4ac37 (diff) |
modem-helpers: handle commas within +COPS response items (bgo #701329)
Modems can probably put whatever they want between the quotes for
the operator name, including commas. Handle that.
https://bugzilla.gnome.org/show_bug.cgi?id=701329
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 44a00a53..4bffd11b 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -530,7 +530,7 @@ mm_3gpp_parse_cops_test_response (const gchar *reply, * +COPS: (2,"","T-Mobile","31026",0),(1,"AT&T","AT&T","310410"),0) */ - r = g_regex_new ("\\((\\d),([^,\\)]*),([^,\\)]*),([^,\\)]*)[\\)]?,(\\d)\\)", G_REGEX_UNGREEDY, 0, &inner_error); + r = g_regex_new ("\\((\\d),\"([^\"\\)]*)\",([^,\\)]*),([^,\\)]*)[\\)]?,(\\d)\\)", G_REGEX_UNGREEDY, 0, &inner_error); if (inner_error) { mm_err ("Invalid regular expression: %s", inner_error->message); g_error_free (inner_error); |