Commit 80eb3c02 authored by Guido van Rossum's avatar Guido van Rossum

Zap all env vars beginning with PYTHON to prevent an obvious form of attack.

parent b5dc5e3d
...@@ -105,6 +105,8 @@ clean_environ(void) ...@@ -105,6 +105,8 @@ clean_environ(void)
**p = 'X'; **p = 'X';
else if (strncmp(*p, "_RLD", 4) == 0) else if (strncmp(*p, "_RLD", 4) == 0)
**p = 'X'; **p = 'X';
else if (strncmp(*p, "PYTHON", 6) == 0)
**p = 'X';
else if (strncmp(*p, "IFS=", 4) == 0) else if (strncmp(*p, "IFS=", 4) == 0)
*p = def_IFS; *p = def_IFS;
else if (strncmp(*p, "CDPATH=", 7) == 0) else if (strncmp(*p, "CDPATH=", 7) == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment