1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added missing middleware to trim input

This commit is contained in:
Dan Brown
2017-09-30 14:31:27 +01:00
parent 5fd04fa470
commit aca6de49b0
2 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace BookStack\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
class TrimStrings extends BaseTrimmer
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_confirmation',
];
}