View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037368 | mantisbt | administration | public | 2026-09-05 12:48 | 2026-09-06 06:40 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037368: Calling access_denied() function from CLI triggers PHP warning | ||||
| Description | When running from CLI, PHP throws It makes no sense to output HTML, send a response code and redirect in a CLI context, this code should not be executed. | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master b92b04d7 2026-09-05 09:42 Details Diff |
Fix PHP warning in access_denied() from CLI When running from CLI, PHP throws SYSTEM WARNING: http_response_code(): Cannot set response code - headers already sent. It makes no sense to output HTML, send a response code and redirect in a CLI context anyway, so this commit adds a bypass that just aborts the script with exit code 1. Fixes 0037368 |
Affected Issues 0037368 |
|
| mod - core/access_api.php | Diff File | ||