diff options
Diffstat (limited to 'lib/pure/strtabs.nim')
-rwxr-xr-x | lib/pure/strtabs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/strtabs.nim b/lib/pure/strtabs.nim index a9ce9016c..15ff5a079 100755 --- a/lib/pure/strtabs.nim +++ b/lib/pure/strtabs.nim @@ -136,7 +136,8 @@ proc RaiseFormatException(s: string) = proc getValue(t: PStringTable, flags: set[TFormatFlag], key: string): string = if hasKey(t, key): return t[key] - if useEnvironment in flags: result = os.getEnv(key) + # hm difficult: assume safety in taint mode here. XXX This is dangerous! + if useEnvironment in flags: result = os.getEnv(key).string else: result = "" if result.len == 0: if useKey in flags: result = '$' & key |