Allow underscore characters in app name (#368)

Summary:
This whitelist exists to prevent unauthorized code execution. But there's no need to exclude _, which is a valid character in android app names.
Pull Request resolved: https://github.com/facebook/flipper/pull/368

Reviewed By: passy

Differential Revision: D13987022

Pulled By: jknoxville

fbshipit-source-id: 920c5906513af9ba00ae6626b4790dfd021fe4a0
This commit is contained in:
John Knox
2019-02-07 05:53:47 -08:00
committed by Facebook Github Bot
parent 08e74e617b
commit 8a5b5a0cba

View File

@@ -38,7 +38,7 @@ const caSubject = '/C=US/ST=CA/L=Menlo Park/O=Sonar/CN=SonarCA';
const serverSubject = '/C=US/ST=CA/L=Menlo Park/O=Sonar/CN=localhost';
const minCertExpiryWindowSeconds = 24 * 60 * 60;
const appNotDebuggableRegex = /debuggable/;
const allowedAppNameRegex = /^[a-zA-Z0-9.\-]+$/;
const allowedAppNameRegex = /^[a-zA-Z0-9._\-]+$/;
const operationNotPermittedRegex = /not permitted/;
const logTag = 'CertificateProvider';
/*