View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0034465 | mantisbt | html | public | 2024-06-09 10:30 | 2026-05-14 14:09 |
| Reporter | atrol | Assigned To | atrol | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0034465: Wrong rendering of strings | ||||
| Description | Most of the string values are rendered wrong if the values contain one of the html tags configured in This is caused by using
Affected fields
Related 0034463 | ||||
| Tags | No tags attached. | ||||
|
@dregad @vboctor The change in terms of
But I am a bit worried, as the current code is used since many years (of course, not clean as string_attribute was already used at some places). If yes, I would continue my work. |
|
I agree. I can't think of any other places where string_display_line() should be used at the moment. We don't have so many free-text, single-line fields (os/os_build/platform, version fields), and even for those it does not necessarily make sense to allow formatting.
Of course such change has the potential to introduce regressions for anyone expecting a field's value to be formatted, but I think that's an acceptable risk and we can always advise if and when someone complains. |
|
|
years ago I made a plugin (it is not public and only used in our company) to change the display text of a custom field's name and with the now missing signal of EVENT_DISPLAY_TEXT it is not workig anymore. (updating from 2.25.1 to 2.27.1) the function to replace the field's names is tied to that event and reads like this: |
|
The official, recommended way of altering a plugin's display name (label) is documented in the Admin Guide I'm not sure why a plugin would be needed for this. |
|
|
it is a historically grown function within my plugin (that manipulates the appearance of customfields much more than just changing the display name) if someone else is looking for a similar solution in the future here is how I fixed it in my specific case:
thanks for pointing me in the right direction! EDIT: formatting code is hard |
|
Just for the record, this was introduced in 2.27.0 by 0034463 |
|
|
MantisBT: master 03754543 2026-04-12 14:47 Details Diff |
Use string_attribute instead of string_display_line Issue 0034465 |
Affected Issues 0034465 |
|
| mod - account_page.php | Diff File | ||
| mod - account_prof_menu_page.php | Diff File | ||
| mod - account_sponsor_page.php | Diff File | ||
| mod - adm_config_page.php | Diff File | ||
| mod - adm_config_report.php | Diff File | ||
| mod - adm_permissions_report.php | Diff File | ||
| mod - admin/check/check_email_inc.php | Diff File | ||
| mod - api_token_create.php | Diff File | ||
| mod - api_token_revoke.php | Diff File | ||
| mod - api_tokens_page.php | Diff File | ||
| mod - bug_revision_view_page.php | Diff File | ||
| mod - bug_update_page.php | Diff File | ||
| mod - bug_view_inc.php | Diff File | ||
| mod - changelog_page.php | Diff File | ||
| mod - core/bug_group_action_api.php | Diff File | ||
| mod - core/columns_api.php | Diff File | ||
| mod - core/custom_function_api.php | Diff File | ||
| mod - core/filter_api.php | Diff File | ||
| mod - core/filter_form_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - core/mention_api.php | Diff File | ||
| mod - core/prepare_api.php | Diff File | ||
| mod - core/print_api.php | Diff File | ||
| mod - core/summary_api.php | Diff File | ||
| mod - core/tag_api.php | Diff File | ||
| mod - manage_config_email_page.php | Diff File | ||
| mod - manage_config_work_threshold_page.php | Diff File | ||
| mod - manage_config_workflow_graph_page.php | Diff File | ||
| mod - manage_config_workflow_page.php | Diff File | ||
| mod - manage_custom_field_page.php | Diff File | ||
| mod - manage_filter_edit_page.php | Diff File | ||
| mod - manage_filter_page.php | Diff File | ||
| mod - manage_plugin_page.php | Diff File | ||
| mod - manage_proj_cat_delete.php | Diff File | ||
| mod - manage_proj_edit_page.php | Diff File | ||
| mod - manage_proj_page.php | Diff File | ||
| mod - manage_proj_ver_delete.php | Diff File | ||
| mod - manage_tags_page.php | Diff File | ||
| mod - manage_user_edit_page.php | Diff File | ||
| mod - manage_user_page.php | Diff File | ||
| mod - my_view_inc.php | Diff File | ||
| mod - news_list_page.php | Diff File | ||
| mod - print_all_bug_page.php | Diff File | ||
| mod - print_all_bug_page_word.php | Diff File | ||
| mod - proj_doc_delete.php | Diff File | ||
| mod - proj_doc_page.php | Diff File | ||
| mod - roadmap_page.php | Diff File | ||
| mod - tag_update_page.php | Diff File | ||
| mod - tag_view_page.php | Diff File | ||
| mod - verify.php | Diff File | ||
| mod - verify_email.php | Diff File | ||
| mod - view_user_page.php | Diff File | ||
|
MantisBT: master e6731f0a 2026-04-12 16:16 Details Diff |
Fix wrong usage of string_display string_display should just be used for - multi line strings / text area - strings where $g_html_valid_tags must be considered Issue 0034465 |
Affected Issues 0034465 |
|
| mod - core/filter_form_api.php | Diff File | ||
| mod - manage_config_email_page.php | Diff File | ||
| mod - manage_config_work_threshold_page.php | Diff File | ||
| mod - plugins/XmlImportExport/pages/import.php | Diff File | ||
|
MantisBT: master e4debe38 2026-05-10 15:10 Details Diff |
Use string_attribute to display user name Issue 0034465 |
Affected Issues 0034465 |
|
| mod - manage_proj_user_update.php | Diff File | ||
|
MantisBT: master 5a68f64a 2026-05-10 16:20 Details Diff |
Use string_attribute to display enum values Issue 0034465 |
Affected Issues 0034465 |
|
| mod - adm_config_report.php | Diff File | ||
| mod - adm_permissions_report.php | Diff File | ||
| mod - core/columns_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - core/print_api.php | Diff File | ||
| mod - manage_config_email_page.php | Diff File | ||
| mod - manage_config_work_threshold_page.php | Diff File | ||
| mod - manage_config_workflow_page.php | Diff File | ||
| mod - manage_proj_edit_page.php | Diff File | ||
| mod - manage_proj_page.php | Diff File | ||
| mod - manage_proj_user_update.php | Diff File | ||
| mod - view_user_page.php | Diff File | ||
|
MantisBT: master 18f3f05f 2026-05-10 16:45 Details Diff |
Stop using string_display_line to output bug id Issue 0034465 |
Affected Issues 0034465 |
|
| mod - bug_view_inc.php | Diff File | ||
|
MantisBT: master 9c18ac63 2026-05-14 09:40 Details Diff |
Fix wrong rendering of strings Fixes 0034465, PR https://github.com/mantisbt/mantisbt/pull/2218 |
Affected Issues 0034465 |
|
| mod - account_page.php | Diff File | ||
| mod - account_prof_menu_page.php | Diff File | ||
| mod - account_sponsor_page.php | Diff File | ||
| mod - adm_config_page.php | Diff File | ||
| mod - adm_config_report.php | Diff File | ||
| mod - adm_permissions_report.php | Diff File | ||
| mod - admin/check/check_email_inc.php | Diff File | ||
| mod - api_token_create.php | Diff File | ||
| mod - api_token_revoke.php | Diff File | ||
| mod - api_tokens_page.php | Diff File | ||
| mod - bug_revision_view_page.php | Diff File | ||
| mod - bug_update_page.php | Diff File | ||
| mod - bug_view_inc.php | Diff File | ||
| mod - changelog_page.php | Diff File | ||
| mod - core/bug_group_action_api.php | Diff File | ||
| mod - core/columns_api.php | Diff File | ||
| mod - core/custom_function_api.php | Diff File | ||
| mod - core/filter_api.php | Diff File | ||
| mod - core/filter_form_api.php | Diff File | ||
| mod - core/layout_api.php | Diff File | ||
| mod - core/mention_api.php | Diff File | ||
| mod - core/prepare_api.php | Diff File | ||
| mod - core/print_api.php | Diff File | ||
| mod - core/summary_api.php | Diff File | ||
| mod - core/tag_api.php | Diff File | ||
| mod - manage_config_email_page.php | Diff File | ||
| mod - manage_config_work_threshold_page.php | Diff File | ||
| mod - manage_config_workflow_graph_page.php | Diff File | ||
| mod - manage_config_workflow_page.php | Diff File | ||
| mod - manage_custom_field_page.php | Diff File | ||
| mod - manage_filter_edit_page.php | Diff File | ||
| mod - manage_filter_page.php | Diff File | ||
| mod - manage_plugin_page.php | Diff File | ||
| mod - manage_proj_cat_delete.php | Diff File | ||
| mod - manage_proj_edit_page.php | Diff File | ||
| mod - manage_proj_page.php | Diff File | ||
| mod - manage_proj_user_update.php | Diff File | ||
| mod - manage_proj_ver_delete.php | Diff File | ||
| mod - manage_tags_page.php | Diff File | ||
| mod - manage_user_edit_page.php | Diff File | ||
| mod - manage_user_page.php | Diff File | ||
| mod - my_view_inc.php | Diff File | ||
| mod - news_list_page.php | Diff File | ||
| mod - plugins/XmlImportExport/pages/import.php | Diff File | ||
| mod - print_all_bug_page.php | Diff File | ||
| mod - print_all_bug_page_word.php | Diff File | ||
| mod - proj_doc_delete.php | Diff File | ||
| mod - proj_doc_page.php | Diff File | ||
| mod - roadmap_page.php | Diff File | ||
| mod - tag_update_page.php | Diff File | ||
| mod - tag_view_page.php | Diff File | ||
| mod - verify.php | Diff File | ||
| mod - verify_email.php | Diff File | ||
| mod - view_user_page.php | Diff File | ||