1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

force cast profile id to integer when assigning to session variable

This commit is contained in:
Andrew Dolgov
2018-12-06 07:08:54 +03:00
parent f33cd597be
commit 19e24b4fe2
3 changed files with 5 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ class RPC extends Handler_Protected {
}
function setprofile() {
$_SESSION["profile"] = clean($_REQUEST["id"]);
$_SESSION["profile"] = (int) clean($_REQUEST["id"]);
// default value
if (!$_SESSION["profile"]) $_SESSION["profile"] = null;