JavaScript: Further broaden the whitelist in PasswordInConfigurationFile.

This commit is contained in:
Max Schaefer
2019-05-09 17:07:59 +01:00
parent c16e9a77f3
commit b478c0ddaa
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