View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034682 | mantisbt | bugtracker | public | 2024-09-20 10:05 | 2024-09-28 11:28 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Target Version | 2.26.4 | Fixed in Version | 2.26.4 | ||
Summary | 0034682: Incorrect usage of lang_get_defaulted() for an URL | ||||
Description | When there is no specified label in a menu item, print_menu() uses an icon as a default instead; the URL used to build the HTML anchor tag in this case is passed on to lang_get_defaulted() instead of helper_mantis_url() which is wrong. This never caused any noticeable harm, because
| ||||
Additional Information | Regression introduced many years ago by commit MantisBT master b8e0279f | ||||
Tags | No tags attached. | ||||
MantisBT: master-2.26 904f9235 2024-09-20 12:17 Details Diff |
Use helper_mantis_url(), not lang_get_defaulted() The incorrect usage is a regression introduced many years ago by commit b8e0279f7c1026bb27aaa5a1f3f09e5b9d8b08fc. It never caused any noticeable harm, because with lang_get_defaulted() the param is returned as-is when not found, and since it was used as URL it would be relative to current directory. Fixes 0034682 |
Affected Issues 0034682 |
|
mod - core/html_api.php | Diff File |