summaryrefslogtreecommitdiff
path: root/kohana/helpers/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'kohana/helpers/form.php')
-rw-r--r--kohana/helpers/form.php4
1 files changed, 3 insertions, 1 deletions
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';