server ver

This commit is contained in:
2021-06-20 13:49:07 +00:00
parent 36a8c92dec
commit 8877c0bad0
975 changed files with 555 additions and 6596 deletions

6
app/Http/Controllers/VideoController.php Normal file → Executable file
View File

@@ -125,9 +125,9 @@ class VideoController extends Controller
return new JsonResponse(['error' => 'erroneous_file_encoding']);
}
$video->videotitle = $request->get('videotitle', null);
$video->interpret = $request->get('interpret', null);
$video->songtitle = $request->get('songtitle', null);
$video->imgsource = $request->get('imgsource', null);
$video->interpret = htmlspecialchars($request->get('interpret', null));
$video->songtitle = htmlspecialchars($request->get('songtitle', null));
$video->imgsource = htmlspecialchars($request->get('imgsource', null));
$video->user()->associate($user);
$video->category()->associate(Category::findOrFail($request->get('category')));
$video->hash = $hash;