diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-06-17 22:44:23 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-06-17 23:04:46 +0200 |
commit | f7c5008f2555ee220dadf0443fb005744e78a24a (patch) | |
tree | 4200a53324af1bc54cc376daa9db29076dd4a16e /command.py | |
parent | d0715a400fff796be61b37404d6527e03092c0ad (diff) | |
download | clufter-f7c5008f2555ee220dadf0443fb005744e78a24a.tar.gz clufter-f7c5008f2555ee220dadf0443fb005744e78a24a.tar.xz clufter-f7c5008f2555ee220dadf0443fb005744e78a24a.zip |
command_context: prevent unexpected tainting of mutables
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'command.py')
-rw-r--r-- | command.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -381,7 +381,8 @@ class Command(object): if flt.__class__.name in cmd_ctxt['filter_noop']: ret = in_obj else: - ret = flt(in_obj, flt_ctxt) + with cmd_ctxt.prevented_taint(): + ret = flt(in_obj, flt_ctxt) flt_ctxt['out'] = ret if flt not in terminals or not filter_backtrack[flt]: continue |