diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2020-09-01 21:38:04 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2020-09-02 06:54:19 +0200 |
| commit | 407c72d90a221a4c52561cb193860302c0201b24 (patch) | |
| tree | 45b967886181cc18ea7773323bc8413416adaf62 /rc/tools/python | |
| parent | e0d2602e6a924c9a4067fa9ff23f034b906dd56d (diff) | |
Clear unwanted environment variable
This adds two things I forgot in
9a7d8df4 (Avoid accidentally using environment variables in sh scopes)
Mea culpa, the problem was that I was skipping matches with "filetype"
because that's usually just a hook parameter as in "WinSetOption filetype=.."
rg --pcre2 '\b(?!filetype=)\w+=' rc/
So I missed these two cases where a shell variable is actually called "filetype".
The one in git.kak was not a problem because show_git_cmd_output is only
ever called with sane inputs. However, file.kak does use the filetype
environment variable for many mime types, for example:
filetype=somefiletype\''; echo -debug injection; nop '\' kak /dev/null
Will run the echo since /dev/null has mime type "inode/chardevice"
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions
