Bug 1519418 - Replace line separators from the uid parameter received from the deeplink intent. r=sdaswani a=lizzard
☠☠ backed out by 5cd3206e4d85 ☠ ☠
authorDorel Luca <dluca@mozilla.com>
Fri, 22 Feb 2019 11:07:16 +0200
changeset 516077 f853d621159546e57bd681c6b3b97dc426d4488d
parent 516076 6950e08762ed3382b61df9507563cdbe97ccf587
child 516078 fd591b31f209c11b4b770666e7697345834b9856
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 Reviewers: sdaswani Reviewed By: sdaswani Bug #: 1519418 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) {