Merge pull request #1314 from xiemaisi/js/fix-hardcoded-pw-fps

JavaScript: Further broaden the whitelist in `PasswordInConfigurationFile`.
This commit is contained in:
Asger F
2019-05-16 14:42:09 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ where
(
key.toLowerCase() = "password" and
// exclude interpolations of environment variables
not val.regexpMatch("\\$\\w+|\\$[{(].+[)}]|%.*%")
not val.regexpMatch("\\$.*|%.*%")
or
key.toLowerCase() != "readme" and
// look for `password=...`, but exclude `password=;`, `password="$(...)"`,

View File

@@ -0,0 +1 @@
password: $$SOME_VAR