Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Fekete <fekete77.robert@gmail.com>2022-11-11 09:10:27 +0300
committerGitHub <noreply@github.com>2022-11-11 09:10:27 +0300
commit300fff092e0fdfbe6ee64f6f1d58d2ce7826a99b (patch)
treee7f0c7ce618d310060329ceea3df06be46f801b5
parent7b4c517a6c90e862ec862b8aed82a1f309d145ed (diff)
Add link to security policy from getenv.md (#1746)
Co-authored-by: Joe Mooring <joe@mooring.com>
-rw-r--r--content/en/functions/getenv.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/en/functions/getenv.md b/content/en/functions/getenv.md
index f7f71d35c..93e93a382 100644
--- a/content/en/functions/getenv.md
+++ b/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.
+