Fix some potential security hazards

This commit is contained in:
xiaomlove
2023-05-20 00:17:17 +08:00
parent 167af06cfa
commit fa95279e66
11 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ require_once(get_langfile_path());
loggedinorreturn();
parked();
$userid = $_GET["id"];
$userid = intval($_GET["id"] ?? 0);
int_check($userid,true);
if ($CURUSER["id"] != $userid && !user_can('viewhistory'))