View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0016382 | mantisbt | customization | public | 2013-09-17 17:34 | 2013-09-27 03:53 |
| Reporter | M.Tuellmann | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.2.15 | ||||
| Summary | 0016382: custom_strings_inc.php can crash RSS- Feed and mantisconnect with "XML declaration allowed only..." | ||||
| Description | if custom_strings_inc.php contains a tab (ascii hex 9) after the closing tag "?>" this error occurs: RSS- Feed Mantisconnect | ||||
| Tags | No tags attached. | ||||
|
It is your responsibility to ensure that your include files do not introduce whitespace. I would also recommend not to add the closing '?>' tag as per [1] The closing tag of a PHP block at the end of a file is optional, and in some cases omitting it is helpful when using include or require, so unwanted whitespace will not occur at the end of files, and you will still be able to add headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace at the end of the parts generated by the included files. [1] http://php.net/manual/en/language.basic-syntax.instruction-separation.php |
|