From 96de2e2dd19a4d165c6f3f127464fdc965ba34d6 Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 31 Jan 2020 10:45:27 -0800 Subject: [PATCH] Fix ios connection issue Summary: getTargetDeviceId is now being called directly from within server.tsx. Since it's exported anyway, it should always sanitize its input. Changed the ios method to sanitize the CSR in the same way that the android one does. Reviewed By: cekkaewnumchai Differential Revision: D19663992 fbshipit-source-id: 77662542b3a8767ecdd4e984a8e2d990761a9815 --- src/utils/CertificateProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/CertificateProvider.tsx b/src/utils/CertificateProvider.tsx index 02d66c629..249f1003b 100644 --- a/src/utils/CertificateProvider.tsx +++ b/src/utils/CertificateProvider.tsx @@ -407,7 +407,7 @@ export default class CertificateProvider { ); }); }) - .then(csrFromDevice => csrFromDevice === csr); + .then(csrFromDevice => csrFromDevice === this.santitizeString(csr)); } santitizeString(csrString: string): string {