Skip to content

Commit fae081f

Browse files
authored
Merge pull request #3955 from tangix/env-docs
[ci skip] added varning about .env and phpinfo()
2 parents 14d8d28 + d6b5d49 commit fae081f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

user_guide_src/source/general/configuration.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ overwritten. The loaded Environment variables are accessed using any of the foll
113113
$s3_bucket = $_ENV['S3_BUCKET'];
114114
$s3_bucket = $_SERVER['S3_BUCKET'];
115115

116+
.. important:: Note that your settings from the **.env** file are added to Environment Variables. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons) **your secure credentials are publicly exposed**.
117+
116118
Nesting Variables
117119
=================
118120

0 commit comments

Comments
 (0)