feeds/add: force cast category id to integer

This commit is contained in:
Andrew Dolgov 2021-11-19 17:02:25 +03:00
parent 0a3a464def
commit 2b4ba59a79
1 changed files with 1 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ class Feeds extends Handler_Protected {
function add(): void {
$feed = clean($_REQUEST['feed']);
$cat = clean($_REQUEST['cat'] ?? '');
$cat = (int) clean($_REQUEST['cat'] ?? '');
$need_auth = isset($_REQUEST['need_auth']);
$login = $need_auth ? clean($_REQUEST['login']) : '';
$pass = $need_auth ? clean($_REQUEST['pass']) : '';