mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 07:05:56 +00:00
feeds/add: force cast category id to integer
This commit is contained in:
@@ -1024,7 +1024,7 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
function add(): void {
|
function add(): void {
|
||||||
$feed = clean($_REQUEST['feed']);
|
$feed = clean($_REQUEST['feed']);
|
||||||
$cat = clean($_REQUEST['cat'] ?? '');
|
$cat = (int) clean($_REQUEST['cat'] ?? '');
|
||||||
$need_auth = isset($_REQUEST['need_auth']);
|
$need_auth = isset($_REQUEST['need_auth']);
|
||||||
$login = $need_auth ? clean($_REQUEST['login']) : '';
|
$login = $need_auth ? clean($_REQUEST['login']) : '';
|
||||||
$pass = $need_auth ? clean($_REQUEST['pass']) : '';
|
$pass = $need_auth ? clean($_REQUEST['pass']) : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user