Skip to content

Commit

Permalink
#4485 never expose empty keys
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 26, 2025
1 parent 2c0590b commit 0aa18f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/server/server_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def proc_str(b, fdname="stdout"):
env.update(decode(proc_str(out, "stdout")))
env.update(decode_dict(proc_str(err, "stderr")))
log("env_from_sourcing%s=%s", (file_to_source_path, include_unexported_variables), env)
return env
# ensure we never expose empty keys:
# (see ticket #4485)
return dict(filter(lambda item: bool(item[0]), env.items()))


def sh_quotemeta(s:str) -> str:
Expand Down

0 comments on commit 0aa18f7

Please sign in to comment.