mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add the complement to the putenv() security
This commit is contained in:
parent
1d1b59da76
commit
86a19f4714
4 changed files with 79 additions and 22 deletions
|
@ -136,7 +136,8 @@ typedef struct {
|
|||
zval **array_walk_func_name;
|
||||
zval **user_compare_func_name;
|
||||
|
||||
HashTable protected_env_vars;
|
||||
HashTable sm_protected_env_vars;
|
||||
char *sm_allowed_env_vars;
|
||||
|
||||
/* pageinfo.c */
|
||||
long page_uid;
|
||||
|
@ -184,6 +185,7 @@ typedef struct {
|
|||
|
||||
/* Values are comma-delimited
|
||||
*/
|
||||
#define SAFE_MODE_PROTECTED_ENV_VARS "LD_LIBRARY_PATH"
|
||||
#define SAFE_MODE_PROTECTED_ENV_VARS "LD_LIBRARY_PATH"
|
||||
#define SAFE_MODE_ALLOWED_ENV_VARS "PHP_"
|
||||
|
||||
#endif /* _BASIC_FUNCTIONS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue