View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007118 | mantisbt | bugtracker | public | 2006-05-19 06:56 | 2020-11-22 05:13 |
Reporter | zamana | Assigned To | grangeway | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0007118: Report Issue: attaching an oversized file raises wrong error message in bug_report.php/gpc_get (gpc_api.php) | ||||
Description | In "Report Issue" option, if you try to attach an oversized file, you'll get an error message about the missing of "reproducibility" field. This is misleading and is regarding the fact that, when the total size of a post is oversized, the $_POST and the $_GET (and the $_REQUEST) global arrays are emptied. Regarding to PHP, this is not a bug, but a feature: | ||||
Additional Information | In order to get the correct error message I changed the function "gpc_get" in "core/gpc_api.php" to look like this (look for "// By Zamana"): function gpc_get( $p_var_name, $p_default = null ) { simulate auto-globals from PHP v4.1.0 (see also code in php_api.php)
} I suggest that this change be put on the official Mantis code. You can change it if needed, of course. | ||||
Tags | No tags attached. | ||||