View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014448 | mantisbt | attachments | public | 2012-07-03 13:51 | 2014-09-23 18:05 |
Reporter | awerner | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | LAMP | OS | Linux | OS Version | 2.6.30.7 |
Product Version | 1.2.11 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014448: 'Undefined index: jpg' in '.../core/file_api.php' line 917 | ||||
Description | When dowloading an attachment from a bug issue, whose file extension is not defined through an override, the following error is written into the output: SYSTEM NOTICE: 'Undefined index: jpg' in '.../core/file_api.php' line 917 SYSTEM WARNING: 'Cannot modify header information - headers already sent by (output started at .../core/error_api.php:202)' in '.../file_download.php' line 167 The ... are replacing the full path to the module. | ||||
Tags | No tags attached. | ||||
|
|
Can you try replacing function file_get_content_type_override in file_api.php by the following code function file_get_content_type_override( $p_filename ) {
} |
|
One more question: |
|
Dear atrol, This additional "if" statement solves the problem, thanks a lot. For testing purposes, I have set: Kind regards, |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master-1.2.x 79e4d02d 2012-07-09 08:48 Details Diff |
Fix 0014448: 'Undefined index: jpg' in '.../core/file_api.php' |
Affected Issues 0014448 |
|
mod - core/file_api.php | Diff File | ||
MantisBT: master 8945fcc6 2012-07-09 08:52 Details Diff |
Fix 0014448: 'Undefined index: jpg' in '.../core/file_api.php' |
Affected Issues 0014448 |
|
mod - core/file_api.php | Diff File |