Form helper testing

This commit is contained in:
Master Yoda 2018-06-27 08:28:09 -07:00
parent f56e2e9d92
commit e55cae1e14
No known key found for this signature in database
GPG Key ID: CED549230775AD5B
2 changed files with 484 additions and 407 deletions

View File

@ -82,7 +82,7 @@ if ( ! function_exists('form_open'))
$form = '<form action="' . $action . '"' . $attributes . ">\n";
// Add CSRF field if enabled, but leave it out for GET requests and requests to external websites
$before = (new \Config\Filters())->globals['before'];
$before = Services::filters()->getFilters()['before'];
if ((in_array('csrf', $before) || array_key_exists('csrf', $before)) && strpos($action, base_url()) !== false && ! stripos($form, 'method="get"')
)

File diff suppressed because it is too large Load Diff