Skip to content

Commit

Permalink
Update form_helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nowackipawel authored Feb 10, 2019
1 parent 1d6a3d8 commit beae5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Helpers/form_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function form_open(string $action = '', $attributes = [], array $hidden = []): s
$attributes .= ' accept-charset="' . strtolower($config->charset) . '"';
}

$form = '<form action="' . $action . '"' . (isset($enctype) ? ' enctype="' . $enctype . '" ' : '') . $attributes . ">\n";
$form = '<form action="' . $action . '"' . (isset($enctype) ? ' enctype="' . $enctype . '"' : '') . $attributes . ">\n";

// Add CSRF field if enabled, but leave it out for GET requests and requests to external websites
$before = Services::filters()->getFilters()['before'];
Expand Down

0 comments on commit beae5b2

Please sign in to comment.