summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/getenv.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/getenv.md')
-rw-r--r--docs/content/en/functions/getenv.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/en/functions/getenv.md b/docs/content/en/functions/getenv.md
index f7f71d35c..93e93a382 100644
--- a/docs/content/en/functions/getenv.md
+++ b/docs/content/en/functions/getenv.md
@@ -41,3 +41,6 @@ And then retrieve the values within a template:
{{ os.Getenv "MY_VAR1" }} --> foo
{{ os.Getenv "MY_VAR2" }} --> bar
```
+
+With Hugo v0.91.0 and later, you must explicitly allow access to environment variables. For details, review [Hugo's Security Policy](/about/security-model/#security-policy). By default, environment variables beginning with `HUGO_` are allowed when using the `os.Getenv` function.
+