mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
add security constraint to autoresearch.md, fix strict mode gate
This commit is contained in:
@@ -34,6 +34,10 @@ then the performance benchmark, outputting metrics in parseable format.
|
||||
- liquid-spec failures must not increase beyond 2 (pre-existing UTF-8 edge cases)
|
||||
- No new gem dependencies
|
||||
- Semantic correctness must be preserved — templates must render identical output
|
||||
- **Security**: Liquid runs untrusted user code. Never use eval, send on user input,
|
||||
dynamic method dispatch, const_get, or any pattern that could let template authors
|
||||
escape the sandbox. All optimizations must use safe byte-level scanning with explicit
|
||||
character checks only.
|
||||
|
||||
## Baseline
|
||||
- **Commit**: 4ea835a (original, before any optimizations)
|
||||
|
||||
Reference in New Issue
Block a user