X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_dropdown_option_add.php;h=de598186e29f5b7a7e69b6430f055bec4fa294bb;hb=a26a0989ad93cce9de9f45312990da9610e53045;hp=7b49424e5179eb54c78239cdbb2577c2f879f7d3;hpb=a8a191541d6f05b08bd8331bdf409af5abfac896;p=timetracker.git diff --git a/cf_dropdown_option_add.php b/cf_dropdown_option_add.php index 7b49424e..de598186 100644 --- a/cf_dropdown_option_add.php +++ b/cf_dropdown_option_add.php @@ -39,11 +39,13 @@ if (!$user->isPluginEnabled('cf')) { header('Location: feature_disabled.php'); exit(); } - -$cl_field_id = $request->getParameter('field_id'); +$cl_field_id = (int)$request->getParameter('field_id'); $field = CustomFields::getField($cl_field_id); -if (false === $field) - $err->add($i18n->get('error.db')); +if (!$field) { + header('Location: access_denied.php'); + exit(); +} +// End of access checks. $form = new Form('optionAddForm'); if ($err->no()) {