summaryrefslogtreecommitdiff
path: root/php.ini-dist
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-31 22:31:00 +0000
committerZeev Suraski <zeev@php.net>2000-01-31 22:31:00 +0000
commit86a19f47140b36d0c93508ca82c44b8c72db538c (patch)
treebca29767128c436c1838eaf1fb1921def73fccb4 /php.ini-dist
parent1d1b59da76c4bf5b38681d98966e39c4301e4595 (diff)
downloadphp-git-86a19f47140b36d0c93508ca82c44b8c72db538c.tar.gz
Add the complement to the putenv() security
Diffstat (limited to 'php.ini-dist')
-rw-r--r--php.ini-dist26
1 files changed, 20 insertions, 6 deletions
diff --git a/php.ini-dist b/php.ini-dist
index 844bf100e8..38d81de95b 100644
--- a/php.ini-dist
+++ b/php.ini-dist
@@ -77,12 +77,26 @@ allow_call_time_pass_reference = On ; whether to enable the ability to force arg
; Safe Mode
safe_mode = Off
safe_mode_exec_dir =
-safe_mode_protected_env_vars = LD_LIBRARY_PATH ; In Safe Mode, setting certain environment
- ; variables may be a potential security
- ; breach. This directive contains
- ; a comma delimited list of environment
- ; variables, that the end user won't be
- ; able to override using putenv()
+safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables
+ ; may be a potential security breach.
+ ; This directive contains a comma-delimited
+ ; list of prefixes. In Safe Mode, the
+ ; user may only alter environment
+ ; variables whose names begin with the
+ ; prefixes supplied here.
+ ; By default, users will only be able
+ ; to set environment variables that begin
+ ; with PHP_ (e.g. PHP_FOO=BAR).
+ ; Note: If this directive is empty, PHP
+ ; will let the user modify ANY environment
+ ; variable!
+safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma-
+ ; delimited list of environment variables,
+ ; that the end user won't be able to
+ ; change using putenv().
+ ; These variables will be protected
+ ; even if safe_mode_allowed_env_vars is
+ ; set to allow to change them.
; Colors for Syntax Highlighting mode. Anything that's acceptable in <font color=???> would work.
highlight.string = #DD0000