Changesets: MantisBT

master edb3a02e

2025-01-06 12:17

dregad


Details Diff
PHPDoc
mod - core/tag_api.php Diff File

master a4ce48fe

2025-01-06 12:14

dregad


Details Diff
Restore tag_stats_related() $p_limit parameter

The refactoring of the function in issue 0021913 [1] removed the logic to
limit the number of related tags shown on Tag Details page.

This adds it back, and allows to get the unlimited list with 0.

Fixes 0035219

[1]: commit 8ab8e125a4d49186b32c8006f56de2c0c8126d47
Affected Issues
0021913, 0035219
mod - core/tag_api.php Diff File

master 75113ccc

2025-01-06 09:41

raspopov

Committer: dregad


Details Diff
Fix Undefined array key warning in Parsedown 1.8+

SYSTEM WARNING 'Undefined array key "name"'
in '...plugins\MantisCoreFormatting\core\MantisMarkdown.php' line 152

Fixes 0035227
Affected Issues
0035227
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File

master a94bae75

2025-01-06 08:09

dregad


Details Diff
Merge branch 'master-2.27'
mod - adm_config_report.php Diff File

master 29c6e886

2025-01-06 08:02

dregad

Committer: community


Details Diff
Improve error reporting in manage_plugin_page.php

Merge pull request https://github.com/mantisbt/mantisbt/pull/2066
mod - bug_report_page.php Diff File
mod - core/classes/MantisPlugin.class.php Diff File
mod - core/classes/MissingClassPlugin.class.php Diff File
add - core/classes/MissingHooksPlugin.class.php Diff File
mod - core/error_api.php Diff File
mod - core/event_api.php Diff File
mod - core/plugin_api.php Diff File
mod - lang/strings_english.txt Diff File
mod - manage_plugin_page.php Diff File

master 8448e7a5

2025-01-06 07:59

dregad

Committer: community


Details Diff
Fix handling of relative URLs in helper_get_root_domain()

Merge PR https://github.com/mantisbt/mantisbt/pull/2067
mod - core/config_api.php Diff File
mod - core/helper_api.php Diff File
mod - core/string_api.php Diff File
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File
mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File
mod - tests/Mantis/MantisCoreBase.php Diff File

master 829bbe5b

2025-01-02 07:07

translatewiki.net


Details Diff
Localisation updates from https://translatewiki.net. [skip ci]
mod - plugins/MantisCoreFormatting/lang/strings_luxembourgish.txt Diff File

master 19c09a8b

2024-12-30 05:59

dregad


Details Diff
Coding guidelines
mod - core/email_api.php Diff File
mod - core/summary_api.php Diff File
mod - view_all_inc.php Diff File

master f83d1314

2024-12-30 05:57

dregad


Details Diff
PHPDoc
mod - core/access_api.php Diff File
mod - core/bug_group_action_api.php Diff File
mod - core/category_api.php Diff File
mod - core/classes/BugFilterQuery.class.php Diff File
mod - core/classes/DbQuery.class.php Diff File
mod - core/custom_function_api.php Diff File
mod - core/database_api.php Diff File
mod - core/filter_api.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/gpc_api.php Diff File
mod - core/html_api.php Diff File
mod - core/print_api.php Diff File
mod - view_all_inc.php Diff File

master 9cb002ec

2024-12-29 19:20

dregad


Details Diff
Add tests for external URLs and nofollow

- testLinkIsExternal: checks that helper_is_link_external() correctly
detects external URLs.
- testNoFollow: verifies that helper_get_link_attributes() sets the
nofollow attribute (LINKS_NOFOLLOW_EXTERNAL) as appropriate for
internal and external links.

Issue 0035210
Affected Issues
0035210
mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File

master 8155682b

2024-12-29 19:15

dregad


Details Diff
Add missing data set for LINKS_SAME_WINDOW
mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File

master 9b81fd46

2024-12-29 19:11

dregad


Details Diff
Tests: rename param to $p_value
mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File

master d1760b0e

2024-12-29 19:10

dregad


Details Diff
GetLinkAttributesTest: restore previous config value

Fixes 0035212
Affected Issues
0035212
mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File

master 71608cbb

2024-12-29 19:03

dregad


Details Diff
Tests: add methods to set/restore configs

- MantisCoreBase::setConfig() sets the given configuration and returns
its old value
- MantisCoreBase::restoreConfig() restores a configuration to its
initial state

Fixes 0035212
Affected Issues
0035212
mod - tests/Mantis/MantisCoreBase.php Diff File

master ef635829

2024-12-29 18:59

dregad


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

dregad


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

dregad


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

dregad


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

raspopov

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

dregad


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

dregad


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

dregad


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

dregad


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

dregad


Details Diff
Reduce invalid plugin status message font size
mod - manage_plugin_page.php Diff File

master ebcd204f

2024-12-27 18:49

dregad


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
 First  Prev  1 2 3 ... 42 43 44 45 46 47 48 ... 80 ... 160 ... 240 ... 320 ... 400 ... 480 ... 560 ... 640 ... 720 ... 762 763 764  Next  Last