Guest User

Untitled

a guest
Jun 22nd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. // Check if CSRF protected is enabled, either on the parent controller or default settings.
  4. if($controller->hasMethod('securityTokenEnabled')) {
  5. $this->security = $controller->securityTokenEnabled();
  6. } else {
  7. $this->security = self::$default_security;
  8. }
Add Comment
Please, Sign In to add comment