改行コードの正規化を削除
This commit is contained in:
parent
e6b333eea4
commit
74c8a1b6cb
@ -34,9 +34,6 @@ class InfoController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$inputs = $request->all();
|
||||
if ($request->has('content')) {
|
||||
$inputs['content'] = str_replace(["\r\n", "\r"], "\n", $inputs['content']);
|
||||
}
|
||||
if (!$request->has('pinned')) {
|
||||
$inputs['pinned'] = false;
|
||||
}
|
||||
@ -67,9 +64,6 @@ class InfoController extends Controller
|
||||
public function update(Request $request, Information $info)
|
||||
{
|
||||
$inputs = $request->all();
|
||||
if ($request->has('content')) {
|
||||
$inputs['content'] = str_replace(["\r\n", "\r"], "\n", $inputs['content']);
|
||||
}
|
||||
if (!$request->has('pinned')) {
|
||||
$inputs['pinned'] = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user