View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016342 | mantisbt | bugtracker | public | 2013-08-31 01:04 | 2014-02-07 18:24 |
Reporter | dwalczak | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.15 | ||||
Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
Summary | 0016342: The g_html_valid_tags_single_line configuration variable seems to be ignored <ul><li>in favor of g_html_valid_tags</li></ul> | ||||
Description | The comment for the $g_html_valid_tags_single_line configuration variable says that it is purposed to specify valid tags for single line fields (e.g. issue summary). Unfortunately, in case of mantis 1.2.15 it seems to be ignored (at least in case of the summary field) and the field value is filtered rather on basis of the g_html_valid_tags variable. <strong>Expected:</strong> | ||||
Steps To Reproduce | <ol> | ||||
Tags | No tags attached. | ||||
This is caused by always calling string_restore_valid_html_tags with second parameter $p_multiline = true or calling string_restore_valid_html_tags without second parameter. |
|
Replacing two times I am a bit unsure as the fix is quite obvious and simple. |
|
@atrol, I had a look at the code and I believe your proposed fix is correct. This bug is probably the result of an oversight or copy-paste error at the time the plugin was created (see https://github.com/mantisbt/mantisbt/commit/f3ff104c). Will commit shortly. |
|
MantisBT: master-1.2.x 924be864 2013-08-31 11:41 Committer: dregad Details Diff |
MantisCoreFormatting: Fix single-line fields html tags processing Methods text() and formatted() Plugin sent a hardcoded 'true' parameter to string_restore_valid_html_tags(), instead of using the method's $p_multiline parameter. Fixes 0016342 |
Affected Issues 0016342 |
|
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php | Diff File | ||
MantisBT: master 1b99f13e 2013-08-31 11:41 Committer: dregad Details Diff |
MantisCoreFormatting: Fix single-line fields html tags processing Methods text() and formatted() Plugin sent a hardcoded 'true' parameter to string_restore_valid_html_tags(), instead of using the method's $p_multiline parameter. Fixes 0016342 |
Affected Issues 0016342 |
|
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php | Diff File |