Merge pull request #4242 from dokku/remove-whitelist-word
Remove reference to 'whitelist'
This commit is contained in:
1 file changed
+3
-3
@@ -23,11 +23,11 @@ output = []
|
|||||||
data = json.load(sys.stdin)
|
data = json.load(sys.stdin)
|
||||||
for container in data:
|
for container in data:
|
||||||
env = []
|
env = []
|
||||||
whitelist = ['CACHE_PATH=', 'DOCKER_', 'DOKKU_', 'DYNO=', 'PATH=', 'PORT=', 'USER=']
|
allowed_prefixes = ['CACHE_PATH=', 'DOCKER_', 'DOKKU_', 'DYNO=', 'PATH=', 'PORT=', 'USER=']
|
||||||
for e in container['Config']['Env']:
|
for e in container['Config']['Env']:
|
||||||
append = False
|
append = False
|
||||||
for w in whitelist:
|
for s in allowed_prefixes:
|
||||||
if e.startswith(w):
|
if e.startswith(s):
|
||||||
append = True
|
append = True
|
||||||
break
|
break
|
||||||
if append:
|
if append:
|
||||||
|
|||||||
Reference in new issue
Block a user