summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-06 17:48:27 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-06 17:48:27 +0000
commita3b0adb1d52e2443e262d53d7ad63f62423a8c76 (patch)
tree3dfca09b9d63f0cf77fdf197aae558d5c765c6ba
parent1333c233aa2fb59ea530cbe881d7ad50da2b968d (diff)
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.
-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';