From 8a6eb931ded561c4b4f96838bf4576b89a2e0dc8 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 6 Mar 2009 18:25:44 +0000 Subject: Undo local change for ticket #1170 --- kohana/helpers/form.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kohana/helpers') 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'; -- cgit v1.2.3