chore(mod_alworkshops): cast hidden_id to int for consistency #10

Closed
imre.agent wants to merge 1 commits from fix/alworkshops-hidden-id-sqli into main
Showing only changes of commit 8a9d865edc - Show all commits

View File

@ -187,7 +187,7 @@ class Controller extends BaseController
}
// application rekord mentés
$app['user_id'] = $_POST['hidden_id'];
$app['user_id'] = (int)$_POST['hidden_id'];
$app['name'] = trim(addslashes(ucwords($_POST['usr'])));
$app['email'] = trim(addslashes($_POST['email']));
MySqlHelper::getInstance()->insert('alworkshops_application', $app);