File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ How can the Expression Language Help Me?
22
22
----------------------------------------
23
23
24
24
The purpose of the component is to allow users to use expressions inside
25
- configuration for more complex logic. For some examples , the Symfony Framework
26
- uses expressions in security, for validation rules and in route matching.
25
+ configuration for more complex logic. For example , the Symfony Framework uses
26
+ expressions in security, for validation rules and in route matching.
27
27
28
28
Besides using the component in the framework itself, the ExpressionLanguage
29
29
component is a perfect candidate for the foundation of a *business rule engine *.
@@ -43,9 +43,10 @@ way without using PHP and without introducing security problems:
43
43
# Send an alert when
44
44
product.stock < 15
45
45
46
- Expressions can be seen as a very restricted PHP sandbox and are immune to
47
- external injections as you must explicitly declare which variables are available
48
- in an expression.
46
+ Expressions can be seen as a very restricted PHP sandbox and are less vulnerable
47
+ to external injections because you must explicitly declare which variables are
48
+ available in an expression (but you should still sanitize any data given by end
49
+ users and passed to expressions).
49
50
50
51
Usage
51
52
-----
You can’t perform that action at this time.
0 commit comments