改行コードの正規化を削除

This commit is contained in:
shibafu 2019-03-16 10:45:51 +09:00
parent e6b333eea4
commit 74c8a1b6cb

View File

@ -34,9 +34,6 @@ class InfoController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
$inputs = $request->all(); $inputs = $request->all();
if ($request->has('content')) {
$inputs['content'] = str_replace(["\r\n", "\r"], "\n", $inputs['content']);
}
if (!$request->has('pinned')) { if (!$request->has('pinned')) {
$inputs['pinned'] = false; $inputs['pinned'] = false;
} }
@ -67,9 +64,6 @@ class InfoController extends Controller
public function update(Request $request, Information $info) public function update(Request $request, Information $info)
{ {
$inputs = $request->all(); $inputs = $request->all();
if ($request->has('content')) {
$inputs['content'] = str_replace(["\r\n", "\r"], "\n", $inputs['content']);
}
if (!$request->has('pinned')) { if (!$request->has('pinned')) {
$inputs['pinned'] = false; $inputs['pinned'] = false;
} }