Skip to content

Commit

Permalink
Further improvements to the Twig SecurityPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Towers committed Dec 18, 2020
1 parent 2108321 commit f63519f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/system/twig/SecurityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ final class SecurityPolicy implements SecurityPolicyInterface
* @var array List of forbidden methods.
*/
protected $blockedMethods = [
// \October\Rain\Extension\ExtendableTrait
'addDynamicMethod',
'addDynamicProperty',

// \October\Rain\Support\Traits\Emitter
'bindEvent',
'bindEventOnce',

// Eloquent & Halcyon data modification
'insert',
'update',
'delete',
];

/**
Expand Down

0 comments on commit f63519f

Please sign in to comment.