Skip to content

Commit b6f4732

Browse files
maxheckelMax Heckeltaylorotwell
authored
Turn off autocomplete for csrf_field (#48371)
* Turn off autocomplete * Update helpers.php --------- Co-authored-by: Max Heckel <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 0b13338 commit b6f4732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function cookie($name = null, $value = null, $minutes = 0, $path = null, $domain
323323
*/
324324
function csrf_field()
325325
{
326-
return new HtmlString('<input type="hidden" name="_token" value="'.csrf_token().'">');
326+
return new HtmlString('<input type="hidden" name="_token" value="'.csrf_token().'" autocomplete="off">');
327327
}
328328
}
329329

0 commit comments

Comments
 (0)