mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added csrf to get when adding a new alert filter
This commit is contained in:
parent
6a32b6ca6d
commit
6a5c5fe32b
1 changed files with 2 additions and 1 deletions
|
|
@ -1099,7 +1099,8 @@ function filterAlertByFilters(confset_id, subdir, script_key) {
|
|||
}),
|
||||
success: function(rsp) {
|
||||
let get_params = NtopUtils.paramsExtend(]] print(tableToJsObject(alert_utils.getTabParameters(url_params, nil))) print[[, {status:getCurrentStatus()});
|
||||
let form = NtopUtils.paramsToForm('<form method="get"></form>', get_params);
|
||||
get_params.csrf = "]] print(ntop.getRandomCSRFValue()) print[[";
|
||||
let form = NtopUtils.paramsToForm('<form method="post"></form>', get_params);
|
||||
form.appendTo('body').submit();
|
||||
},
|
||||
error: function(rsp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue