MantisBT: master ab91f9eb

Author Committer Branch Timestamp Parent
dregad dregad master 2015-12-10 03:12 master a3f9d033
Affected Issues  0020372: Inline error reports should not mess up non-HTML output
Changeset

Do not print inline errors in non-HTML output

There are several PHP scripts in MantisBT which are used to dynamically
generate non-HTML content, e.g. javascript_*.php, css/common_config.php,
etc. Printing HTML code in these files generates invalid ouput.

This commit allows these special scripts to prevent inline errors
messages from being printed by defining a constant prior to including
core.php (or the Error API), as follows:

define( 'DISABLE_INLINE_ERROR_REPORTING', true );

Fixes 0020372

mod - browser_search_plugin.php Diff File
mod - core/error_api.php Diff File
mod - css/common_config.php Diff File
mod - css/status_config.php Diff File
mod - csv_export.php Diff File
mod - excel_xml_export.php Diff File
mod - file_download.php Diff File
mod - javascript_config.php Diff File
mod - javascript_translations.php Diff File