fix form spoofing
This commit is contained in:
1 parent
a824102a1f
commit
8c8bdd7078
1 file changed
+1
-1
+1
-1
@@ -106,7 +106,7 @@ class FormBuilder {
|
|||||||
// If the method is PUT, PATCH or DELETE we will need to add a spoofer hidden
|
// 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
|
// field that will instruct the Symfony request to pretend the method is a
|
||||||
// different method than it actually is, for convenience from the forms.
|
// 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'])
|
if (isset($options['files']) and $options['files'])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user