mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Form helper testing
This commit is contained in:
parent
f56e2e9d92
commit
e55cae1e14
@ -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
Loading…
x
Reference in New Issue
Block a user