Update HomeSettings Controller, allow html in bio

This commit is contained in:
Daniel Supernault 2018-11-04 17:18:11 -07:00
parent 3696745cbf
commit f69248ba06
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -11,6 +11,7 @@ use App\UserFilter;
use App\Util\Lexer\PrettyNumber;
use Auth;
use DB;
use Purify;
use Illuminate\Http\Request;
trait HomeSettings
@ -40,8 +41,8 @@ trait HomeSettings
]);
$changes = false;
$name = $request->input('name');
$bio = $request->input('bio');
$name = strip_tags($request->input('name'));
$bio = Purify::clean($request->input('bio'));
$website = $request->input('website');
$email = $request->input('email');
$user = Auth::user();