diff options
-rw-r--r-- | kohana/helpers/form.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kohana/helpers/form.php b/kohana/helpers/form.php index 64a6d5f6..eeed10ab 100644 --- a/kohana/helpers/form.php +++ b/kohana/helpers/form.php @@ -24,9 +24,7 @@ class form_Core { // Make sure that the method is always set empty($attr['method']) and $attr['method'] = 'post'; - /* ******* Begin Local Fix for Kohana ticket: 1170 *********/ - if (!in_array($attr['method'], array('post', 'get', 'put'))) - /* ******* End Local Fix for Kohana ticket: 1170 *********/ + if ($attr['method'] !== 'post' and $attr['method'] !== 'get') { // If the method is invalid, use post $attr['method'] = 'post'; |