diff --git a/app/Http/Requests/RegulasiRequest.php b/app/Http/Requests/RegulasiRequest.php index cc4d59411..d01560205 100644 --- a/app/Http/Requests/RegulasiRequest.php +++ b/app/Http/Requests/RegulasiRequest.php @@ -54,9 +54,9 @@ public function rules() { return [ 'tipe_regulasi' => 'required', - 'judul' => 'required', - 'deskripsi' => 'required', - 'file_regulasi' => 'file|mimes:jpg,jpeg,png,gif,pdf|max:2048', + 'judul' => 'required|string|max:200', + 'deskripsi' => 'required|string', + 'file_regulasi' => 'file|mimes:jpg,jpeg,png,gif,pdf|max:2048|valid_file', ]; } } diff --git a/catatan_rilis.md b/catatan_rilis.md index bdc7a0c2a..42b668d27 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -7,5 +7,7 @@ Di rilis v23.03.01 berisi perbaikan yang diminta Komunitas OpenDK. 1. [#638](https://github.com/OpenSID/OpenDK/issues/638) Perbaiki slider tidak bisa lebih dari 4. #### Teknis + 1. [#2089](https://github.com/OpenSID/premium/issues/2089) Audit keamanan validasi saat unggah gambar di artikel. 2. [#2114](https://github.com/OpenSID/premium/issues/2114) Audit keamanan form prosedur. +3. [#2115](https://github.com/OpenSID/premium/issues/2115) Audit keamanan form regulasi. diff --git a/resources/views/informasi/regulasi/form_create.blade.php b/resources/views/informasi/regulasi/form_create.blade.php index 4360e7890..af30a89cc 100755 --- a/resources/views/informasi/regulasi/form_create.blade.php +++ b/resources/views/informasi/regulasi/form_create.blade.php @@ -42,7 +42,7 @@