Changesets: MantisBT
master ef635829 2024-12-29 18:59 Details Diff |
New config_is_set_in_database() API function Same as existing config_is_set(), except that it returns false if there is not override for the config in the database (i.e. it does not check the default value from config files. This is is needed so that PHPUnit tests are able to change config values and then restore the database to its previous state afterwards. Fixes 0035211 |
Affected Issues 0035211 |
|
mod - core/config_api.php | Diff File | ||
master 40f71cf3 2024-12-29 08:49 Details Diff |
Fix nofollow attribute for relative URLs Extract duplicated code in MantisMarkdown::processUrl() and the callback in string_insert_hrefs() into a new helper_is_link_external() function. Add logic to treat relative URLs as internal. Fixes 0035210 Follow-up on issue 0005271, PR https://github.com/mantisbt/mantisbt/pull/2044 |
Affected Issues 0005271, 0035210 |
|
mod - core/helper_api.php | Diff File | ||
mod - core/string_api.php | Diff File | ||
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php | Diff File | ||
master 61f51677 2024-12-29 06:02 Details Diff |
Fix Bug Report Page redirect behavior If an early error occurs when calling bug_report_page.php with ALL_PROJECTS as the current project, a redirection occurs but since handled errors have been logged print_header_redirect() displays a "Proceed" message so the inline errors can be shown, but does not interrupt the script, causing the page layout to be printed twice and cascading errors to occur. Testing print_header_redirect()'s return value and aborting the script if false fixes the problem. Issue #0035208 |
||
mod - bug_report_page.php | Diff File | ||
master 3a483125 2024-12-27 20:33 Details Diff |
Merge branch 'master-2.27' | ||
mod - config_defaults_inc.php | Diff File | ||
mod - core/plugin_api.php | Diff File | ||
mod - plugin_file.php | Diff File | ||
master-2.27 f5f1c6ad 2024-12-27 20:32 Committer: community Details Diff |
Optimisation of work with plugins files. (0002064) Fix the caching of plugin MIME file types Update common types ($g_plugin_mime_types) used by plugin_file_include() - Replace the old 'text/javascript' with 'application/javascript' - Add modern SVG and WebP image types Performance improvements: - avoid loading the magic database if not needed - Add 'Last-Modified' header and return 304 if unchanged Fixes 0035199, PR https://github.com/mantisbt/mantisbt/pull/2064 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0035199 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - core/plugin_api.php | Diff File | ||
master b2b33a0f 2024-12-27 19:17 Details Diff |
Do not throw error for MissingClass plugin We don't want to throw an error for an invalid plugin when displaying manage_plugin_page.php, as this is the place where information about the problem is displayed. Fixes 0035208 |
Affected Issues 0035208 |
|
mod - core/plugin_api.php | Diff File | ||
master 43635e7e 2024-12-27 19:15 Details Diff |
Improve status messages for MissingClassPlugin Fixes 0035208 |
Affected Issues 0035208 |
|
mod - core/classes/MissingClassPlugin.class.php | Diff File | ||
mod - lang/strings_english.txt | Diff File | ||
master 90c13845 2024-12-27 19:09 Details Diff |
Catch failing Plugin event hooks and report them New InvalidPlugin child class: MissingHooksPlugin Fixes 0035208 |
Affected Issues 0035208 |
|
mod - core/classes/MantisPlugin.class.php | Diff File | ||
add - core/classes/MissingHooksPlugin.class.php | Diff File | ||
mod - core/plugin_api.php | Diff File | ||
mod - lang/strings_english.txt | Diff File | ||
master 2cf4437c 2024-12-27 19:01 Details Diff |
Return false when Plugin init fails When a Plugin fails to initialize due to hooking a non-existing Event, the APIs now return false, allowing the caller to catch the problem. For backwards compatibility, since these functions previously had no return type, we consider a return value of null as true. Fixes 0035208 |
Affected Issues 0035208 |
|
mod - core/classes/MantisPlugin.class.php | Diff File | ||
mod - core/event_api.php | Diff File | ||
mod - core/plugin_api.php | Diff File | ||
master a52bf022 2024-12-27 18:53 Details Diff |
Reduce invalid plugin status message font size | ||
mod - manage_plugin_page.php | Diff File | ||
master ebcd204f 2024-12-27 18:49 Details Diff |
Allow delaying of warning messages Warnings triggered by MantisBT core before the page header has been printed cause the layout to be broken if warnings are configured to be displayed inline. Introduce a new error_delay_reporting() function, which allows to selectively enable the delayed printing of warnings (by defining the DELAY_INLINE_ERROR_REPORTING constant), and use it in event_hook() and in the error_handler() for the E_USER_DEPRECATED error type. Adapt the error handler to delay inline warnings when the constant is defined. Fixes 0035207 |
Affected Issues 0035207 |
|
mod - core/error_api.php | Diff File | ||
mod - core/event_api.php | Diff File | ||
master-2.27 b7b43831 2024-12-27 18:47 Details Diff |
Disable inline error reporting in plugin_file.php Fixes 0035209 |
Affected Issues 0035209 |
|
mod - plugin_file.php | Diff File | ||
master bca481c7 2024-12-27 06:38 Details Diff |
Merge branch 'pr2053' PR https://github.com/mantisbt/mantisbt/pull/2053 |
||
mod - core/events_inc.php | Diff File | ||
mod - core/ldap_api.php | Diff File | ||
mod - docbook/Developers_Guide/en-US/Events_Reference.xml | Diff File | ||
master 353cbd70 2024-12-27 04:36 Details Diff |
Ensure requested extra LDAP attributes are unique Even if multiple plugins require the same attribute, it should only be retrieved once. Note: ldap_search() fails if keys are missing in the attributes list, so we need to call array_values() after array_unique(). Issue 0035070 |
Affected Issues 0035070 |
|
mod - core/ldap_api.php | Diff File | ||
master e3c900fe 2024-12-27 04:30 Details Diff |
Add log_event() call for extra attributes Issue 0035070 |
Affected Issues 0035070 |
|
mod - core/ldap_api.php | Diff File | ||
master 7c45c3f5 2024-12-26 08:51 Details Diff |
Allow changing format of Graphviz-generated images The format defaults to PNG to maintain backwards compatibility, but it can be set to any Graphivz-supported format; SVG offers better quality and avoids text begin cropped, but it is not supported by older versions of Graphviz. Fixes 0035038, https://github.com/mantisbt/mantisbt/pull/2051 |
Affected Issues 0035038 |
|
mod - admin/check/check_display_inc.php | Diff File | ||
mod - config_defaults_inc.php | Diff File | ||
mod - core/relationship_graph_api.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/relationship.xml | Diff File | ||
mod - workflow_graph_img.php | Diff File | ||
master 53560af9 2024-12-26 08:39 Details Diff |
Documentation for $g_graph_format | ||
mod - config_defaults_inc.php | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/relationship.xml | Diff File | ||
master fb8b65c5 2024-12-26 08:07 Details Diff |
Merge branch 'master-2.27' | ||
mod - admin/check/check_display_inc.php | Diff File | ||
mod - admin/test_langs.php | Diff File | ||
mod - core/graphviz_api.php | Diff File | ||
master-2.27 0082f6ba 2024-12-26 07:56 Details Diff |
Merge branch graphviz-windows PR https://github.com/mantisbt/mantisbt/pull/2052 |
||
mod - admin/check/check_display_inc.php | Diff File | ||
mod - core/graphviz_api.php | Diff File | ||
master 415de27f 2024-12-26 07:07 translatewiki.net Details Diff |
Localisation updates from https://translatewiki.net. [skip ci] | ||
mod - plugins/MantisCoreFormatting/lang/strings_russian.txt | Diff File | ||
master-2.27 1f556e79 2024-12-26 06:34 Details Diff |
Fix test_langs.php processing ./.. as plugins Since PHP 8.2, dot directories are no longer excluded by default by FileSystemOperator [1]. Fixes 0035200 [1]: https://www.php.net/manual/en/migration82.incompatible.php#migration82.incompatible.standard |
Affected Issues 0035200 |
|
mod - admin/test_langs.php | Diff File | ||
master 5aadece5 2024-12-24 23:02 Details Diff |
Fix param type in phpdoc for `custom_field_get_field()` | ||
mod - core/custom_field_api.php | Diff File | ||
master a04a2532 2024-12-23 12:43 Details Diff |
Merge branch 'master-2.27' | ||
mod - core/lang_api.php | Diff File | ||
master-2.27 36481ac9 2024-12-23 10:42 Committer: dregad Details Diff |
Fix lang_load() performance again Micro-optimization, using string index comparison instead of strncmp(), as explained in [1]. Fixes 0035198, PR https://github.com/mantisbt/mantisbt/pull/2061 [1]: https://mantisbt.org/bugs/view.php?id=35198#c69600 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0035198 |
|
mod - core/lang_api.php | Diff File | ||
master b03a310a 2024-12-23 07:08 translatewiki.net Details Diff |
Localisation updates from https://translatewiki.net. [skip ci] | ||
mod - plugins/MantisCoreFormatting/lang/strings_swedish.txt | Diff File |