View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027573 | mantisbt | code cleanup | public | 2020-11-21 18:38 | 2021-03-07 18:29 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.25.0 | Fixed in Version | 2.25.0 | ||
Summary | 0027573: PHP notice in manage_user_edit_page.php when given invalid user id | ||||
Description | I guess this is not a normal usage scenario, but calling manage_user_edit_page.php with an invalid user_id causes PHP to throw a system notice Trying to access array offset on value of type bool, because the code does not check user_get_row()'s return value, which is false when the id does not exist. | ||||
Tags | No tags attached. | ||||
MantisBT: master ac22c041 2020-11-21 13:17 Details Diff |
Handle invalid user id Failure to check user_get_row()'s return value results in system notice 'Trying to access array offset on value of type bool' when an invalid user_id parameter is given to manage_user_edit_page.php. Fixes 0027573 |
Affected Issues 0027573 |
|
mod - manage_user_edit_page.php | Diff File |