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

Commit cbf7595c authored by Daniel Lehmann's avatar Daniel Lehmann
Browse files

Fix creation of Uri if the lookup key has characters that are not allowed in a Uri

Change-Id: Ie617b76fdb800b1b8877b435dabe37008f03a3bb
parent bc5c776d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -548,7 +548,7 @@ public class ViewContactActivity extends Activity
                if (mAllRestricted) return false;

                // TODO: Keep around actual LOOKUP_KEY, or formalize method of extracting
                final String lookupKey = mLookupUri.getPathSegments().get(2);
                final String lookupKey = Uri.encode(mLookupUri.getPathSegments().get(2));
                final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey);

                final Intent intent = new Intent(Intent.ACTION_SEND);