2017-09-09 15:02:20 -05:00
|
|
|
<?php
|
2017-09-14 10:40:02 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TrimStrings.php
|
|
|
|
* Copyright (c) 2017 thegrumpydictator@gmail.com
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
2017-09-09 15:02:20 -05:00
|
|
|
|
|
|
|
namespace FireflyIII\Http\Middleware;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
|
|
|
|
|
|
|
|
class TrimStrings extends Middleware
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The names of the attributes that should not be trimmed.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2017-09-14 10:40:02 -05:00
|
|
|
protected $except
|
|
|
|
= [
|
|
|
|
'password',
|
|
|
|
'password_confirmation',
|
|
|
|
];
|
2017-09-09 15:02:20 -05:00
|
|
|
}
|