Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2acda4be authored by Megha Joshi's avatar Megha Joshi
Browse files

Uri encode phone number before passing it to query.

Fixes bug 2122926
parent 0647b580
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ public class ContactHeaderWidget extends FrameLayout implements View.OnClickList
     */
    public void bindFromPhoneNumber(String number) {
        mQueryHandler.startQuery(TOKEN_PHONE_LOOKUP, number,
                Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, number),
                Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number)),
                PHONE_LOOKUP_PROJECTION, null, null, null);
    }