From 8c8bdd7078342e6d0ad759cc67f8cabb190b92c4 Mon Sep 17 00:00:00 2001 From: Shawn McCool Date: Wed, 15 May 2013 13:33:25 +0200 Subject: [PATCH] fix form spoofing --- FormBuilder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FormBuilder.php b/FormBuilder.php index 671b63f..82ec06b 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -64,7 +64,7 @@ class FormBuilder { /** * The form methods that should be spoofed, in uppercase. - * + * * @var array */ protected $spoofedMethods = array('DELETE', 'PATCH', 'PUT'); @@ -106,7 +106,7 @@ class FormBuilder { // If the method is PUT, PATCH or DELETE we will need to add a spoofer hidden // field that will instruct the Symfony request to pretend the method is a // different method than it actually is, for convenience from the forms. - $append = $this->getAppendage($attributes['method']); + $append = $this->getAppendage($method); if (isset($options['files']) and $options['files']) { @@ -590,7 +590,7 @@ class FormBuilder { { $options['type'] = 'button'; } - + return 'html->attributes($options).'>'.$value.''; }