Skip to content

Commit

Permalink
Perbaiki form validasi regulasi (#655)
Browse files Browse the repository at this point in the history
* Perbaiki form validasi regulasi

* Perbaiki validasi file prosedur (#653)

* Perbaiki validasi file prosedur

* mutakhirkan cataatn rilis

---------

Co-authored-by: sarwono <[email protected]>

* mutakhirkan catatan rilis

---------

Co-authored-by: sarwono <[email protected]>
  • Loading branch information
yogiperdana and scqolbu24 authored Mar 11, 2023
1 parent 3fd1d13 commit ef1eec2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/Http/Requests/RegulasiRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}
}
2 changes: 2 additions & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion resources/views/informasi/regulasi/form_create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<script>
$(function () {
var fileTypes = ['jpg', 'jpeg', 'png', 'jpg', 'bmp', 'pdf']; //acceptable file types
var fileTypes = ['jpg', 'jpeg', 'png', 'bmp', 'pdf']; //acceptable file types
function readURL(input) {
if (input.files && input.files[0]) {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/informasi/regulasi/form_update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<script>
$(function () {
var fileTypes = ['jpg', 'jpeg', 'png', 'jpg', 'bmp', 'pdf']; //acceptable file types
var fileTypes = ['jpg', 'jpeg', 'png', 'bmp', 'pdf']; //acceptable file types
function readURL(input) {
if (input.files && input.files[0]) {
Expand Down

0 comments on commit ef1eec2

Please sign in to comment.