mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update HomeSettings Controller, allow html in bio
This commit is contained in:
parent
3696745cbf
commit
f69248ba06
1 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ use App\UserFilter;
|
||||||
use App\Util\Lexer\PrettyNumber;
|
use App\Util\Lexer\PrettyNumber;
|
||||||
use Auth;
|
use Auth;
|
||||||
use DB;
|
use DB;
|
||||||
|
use Purify;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
trait HomeSettings
|
trait HomeSettings
|
||||||
|
@ -40,8 +41,8 @@ trait HomeSettings
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$changes = false;
|
$changes = false;
|
||||||
$name = $request->input('name');
|
$name = strip_tags($request->input('name'));
|
||||||
$bio = $request->input('bio');
|
$bio = Purify::clean($request->input('bio'));
|
||||||
$website = $request->input('website');
|
$website = $request->input('website');
|
||||||
$email = $request->input('email');
|
$email = $request->input('email');
|
||||||
$user = Auth::user();
|
$user = Auth::user();
|
||||||
|
|
Loading…
Reference in a new issue