fix(security): resolve F-05 — add url validation to CCTV link update in CctvController
This commit is contained in:
@@ -24,7 +24,7 @@ class CctvController extends Controller
|
||||
public function updateCctvLink(Request $request, $stationid)
|
||||
{
|
||||
$validated = $request->validate([
|
||||
'cctv_link' => 'nullable|string|max:500',
|
||||
'cctv_link' => 'nullable|string|max:500|url',
|
||||
]);
|
||||
|
||||
DB::table('station')->where('stationid', $stationid)->update([
|
||||
|
||||
Reference in New Issue
Block a user