Security update

- Changes status change url method to post for preventing CSRF attacks for ticket status manipluation
- Fixed delete forever functionality
This commit is contained in:
Manish Verma
2018-09-18 16:14:44 +05:30
committed by Manish Verma
parent bacb5137da
commit 190f6500c2
4 changed files with 15 additions and 11 deletions

View File

@@ -138,7 +138,10 @@ var filterClick = 0;
c_status = "Close";
} else if(id == 5) {
c_status = "Delete";
} else if(id == 'hard-delete') {
c_status = "Delete forever";
}
$('.yes').html("Yes");
}
$('#custom-alert-body').html(msg);
@@ -148,7 +151,7 @@ var filterClick = 0;
$('#modalpopup').on('submit', function(e){
if (submit_form == 0) {
e.preventDefault();
changeStatus('hard-delete', '{{Lang::get("lang.clean-")}}');
changeStatus('hard-delete', '{{Lang::get("lang.clean-forever")}}');
}
$('#hard-delete').val('Delete forever')
});