Skip to content

Commit 510ed2d

Browse files
committed
Merge branch '5.1'
* 5.1: Link to the NGINX Unit article for Symfony apps Fix yaml spec link [ExpressionLanguage] Added a security caution about passing untrusted data
2 parents dd5c231 + 9c87f3f commit 510ed2d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

components/expression_language.rst

+7
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ PHP type (including objects)::
107107
For more information, see the :doc:`/components/expression_language/syntax`
108108
entry, especially :ref:`component-expression-objects` and :ref:`component-expression-arrays`.
109109

110+
.. caution::
111+
112+
When using variables in expressions, avoid passing untrusted data into the
113+
array of variables. If you can't avoid that, sanitize non-alphanumeric
114+
characters in untrusted data to prevent malicious users from injecting
115+
control characters and altering the expression.
116+
110117
Caching
111118
-------
112119

setup/web_server_configuration.rst

+6
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,11 @@ The **minimum configuration** to get your application running under Nginx is:
351351
access_log /var/log/nginx/project_access.log;
352352
}
353353
354+
.. tip::
355+
356+
If you use NGINX Unit, check out the official article about
357+
`How to run Symfony applications using NGINX Unit`_.
358+
354359
.. note::
355360

356361
Depending on your PHP-FPM config, the ``fastcgi_pass`` can also be
@@ -381,3 +386,4 @@ For advanced Nginx configuration options, read the official `Nginx documentation
381386
.. _`Apache documentation`: https://httpd.apache.org/docs/
382387
.. _`FastCgiExternalServer`: https://docs.oracle.com/cd/B31017_01/web.1013/q20204/mod_fastcgi.html#FastCgiExternalServer
383388
.. _`Nginx documentation`: https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/
389+
.. _`How to run Symfony applications using NGINX Unit`: https://unit.nginx.org/howto/symfony/

0 commit comments

Comments
 (0)