add csrf token header to jquery requests

This commit is contained in:
Maurice Preuß (envoyr)
2022-12-25 22:14:39 +01:00
parent ddc95762eb
commit 6ad78a4818
4 changed files with 9 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ if ($page == '' || $page == 'overview') {
}
}
} elseif ($action == 'jqGetPlanValues') {
$planid = isset($_POST['planid']) ? (int)$_POST['planid'] : 0;
$planid = (int)Request::get('planid', 0);
try {
$json_result = HostingPlans::getLocal($userinfo, [
'id' => $planid