mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add note on qweb template safety
This commit is contained in:
@@ -167,6 +167,10 @@ We have 3 main folders and 3 main files:
|
||||
- **Qweb**
|
||||
|
||||
- check qweb tests and see if it is reasonable (escaping? safety/security?)
|
||||
- Expression evaluation: make sure we cannot inject JS in template function.
|
||||
For example, a t-props directive such as t-props="state.someValueFromServer"
|
||||
where the value would be something such as `"};console.log('Owned': context.env.actionManager.doAction('fuck you'))`
|
||||
|
||||
- remove the "if (${exprID} || ${exprID} === 0) {"
|
||||
- need to implement t-extend (?)
|
||||
- improve qweb generated code: do not assign object/array if no props/attrs/children
|
||||
|
||||
Reference in New Issue
Block a user