Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9062938

Browse files
author
Shawn McCool
committed
updated FormBuilder class to prevent passwords from being filled by flash data
1 parent 49a92e5 commit 9062938

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Html/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function input($type, $name, $value = null, $options = array())
217217
// in the model instance if one is set. Otherwise we will just use empty.
218218
$id = $this->getIdAttribute($name, $options);
219219

220-
if ($type != 'file')
220+
if ($type != 'file' and $type != 'password')
221221
{
222222
$value = $this->getValueAttribute($name, $value);
223223
}

0 commit comments

Comments
 (0)