Skip to content

Commit ea67b61

Browse files
author
Luke Towers
committed
Further improvements to the Twig SecurityPolicy
1 parent 61e49d9 commit ea67b61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/system/twig/SecurityPolicy.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,18 @@ final class SecurityPolicy implements SecurityPolicyInterface
1818
* @var array List of forbidden methods.
1919
*/
2020
protected $blockedMethods = [
21+
// \October\Rain\Extension\ExtendableTrait
2122
'addDynamicMethod',
2223
'addDynamicProperty',
24+
25+
// \October\Rain\Support\Traits\Emitter
2326
'bindEvent',
2427
'bindEventOnce',
28+
29+
// Eloquent & Halcyon data modification
30+
'insert',
31+
'update',
32+
'delete',
2533
];
2634

2735
/**

0 commit comments

Comments
 (0)