From a3b0adb1d52e2443e262d53d7ad63f62423a8c76 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 6 Mar 2009 17:48:27 +0000 Subject: Local fix to address Kohana ticket 1170 where form::open doesn't allow specification of a put method. Only post and get are currently allowed. --- kohana/helpers/form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kohana/helpers/form.php b/kohana/helpers/form.php index 0eaec0dc..64a6d5f6 100644 --- a/kohana/helpers/form.php +++ b/kohana/helpers/form.php @@ -24,7 +24,9 @@ class form_Core { // Make sure that the method is always set empty($attr['method']) and $attr['method'] = 'post'; - if ($attr['method'] !== 'post' AND $attr['method'] !== 'get') + /* ******* Begin Local Fix for Kohana ticket: 1170 *********/ + if (!in_array($attr['method'], array('post', 'get', 'put'))) + /* ******* End Local Fix for Kohana ticket: 1170 *********/ { // If the method is invalid, use post $attr['method'] = 'post'; -- cgit v1.2.3