Bug 1519418 - Replace line separators from the uid parameter received from the deeplink intent. r=sdaswani, a=lizzard
authorVlad Baicu <vlad.baicu@softvision.ro>
Tue, 29 Jan 2019 18:28:48 +0000
changeset 516089 71f45dc5eca03e82ed4cb309c827971d37807994
parent 516088 a4ed951479c130d122d06969ebc602bef194703f
child 516090 e61f6b679a94e0996b7ea6ccfcaf7e0eee98764c
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssdaswani, lizzard
bugs1519418
milestone66.0
Bug 1519418 - Replace line separators from the uid parameter received from the deeplink intent. r=sdaswani, a=lizzard Differential Revision: https://phabricator.services.mozilla.com/D17959
mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
@@ -190,17 +190,17 @@ public class LauncherActivity extends Ac
         return schemeMatched && actionMatched;
     }
 
     private void dispatchDeepLink(SafeIntent intent) {
         if (intent == null || intent.getData() == null || intent.getData().getHost() == null) {
             return;
         }
         final String deepLink = intent.getData().getHost();
-        final String uid = intent.getData().getQueryParameter("uid");
+        final String uid = intent.getData().getQueryParameter("uid").replaceAll("\\n", "");
         final String localUid = MmaDelegate.getDeviceId(LauncherActivity.this);
         final boolean isMmaDeepLink = uid != null && localUid != null && uid.equals(localUid);
 
         if (!validateMmaDeepLink(deepLink, isMmaDeepLink)) {
             return;
         }
 
         switch (deepLink) {