Skip to content

Conversation

jspahrsummers
Copy link
Member

Comment on lines +35 to +37
if value.startswith("()"):
# Skip functions, which are a security risk
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more ways of defining functions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the behavior of sudo

@jspahrsummers jspahrsummers merged commit 48beb52 into main Nov 7, 2024
5 checks passed
@jspahrsummers jspahrsummers deleted the justin/env-var-inheritance branch November 7, 2024 11:11
gspencergoog pushed a commit to gspencergoog/mcp-python-sdk that referenced this pull request Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants