Topic: CSRF in common.php question...
Ok I have this page with a POST in it with no CSRF token. Works fine for guests/users... but not admin/mods.
Its this that stops it... which is no doubt security. The question I have... how do I get round it if I cannot POST a CSRF token. Thanks
// If we're an administrator or moderator, make sure the CSRF token in $_POST is valid (token in post.php is dealt with in post.php)
if (!empty($_POST) && $pun_user['is_admmod'] && (isset($_POST['confirm_cancel']) || (!isset($_POST['csrf_token']) || $_POST['csrf_token'] !== generate_form_token(get_current_url()))) && basename($_SERVER['PHP_SELF']) != 'post.php')
csrf_confirm_form();