Changesets: MantisBT

master 810303b0

2025-03-07 18:56

dregad


Details Diff
Prevent internal application error in url_get()

When allow_url_fopen = OFF, curl extension is not installed, url_get()
falls back to a shell_exec() call to run curl, but if shell_exec()
function is disabled in php.ini, then an internal application error is
thrown.

This checks that shell_exec() function exists before calling it, and
returns null if not.

Fixes 0035540
Affected Issues
0035540
mod - core/url_api.php Diff File

master 26224a15

2025-03-07 14:28

raspopov

Committer: dregad


Details Diff
Fix incomplete layout of admin pages

Fixes 0022098
Affected Issues
0022098
mod - admin/email_queue.php Diff File
mod - core/layout_api.php Diff File

master 0b9dd984

2025-03-07 13:17

dregad


Details Diff
Fix error when updating category on PostgreSQL

Updating a category results in APPLICATION ERROR 401
Database query failed. Error received from database was #-1:
ERROR: invalid input syntax for type integer: "FALSE"

This is due to internally handling the category's status as a boolean,
while the underlying database column is an integer.

Typecasting the Checkbox post variable to int prevents the problem.

Fixes 0035544
Affected Issues
0035544
mod - manage_proj_cat_update.php Diff File

master eac6a68c

2025-03-07 08:08

raspopov

Committer: dregad


Details Diff
Remove extra check in access_has_global_level()

The code was already present in the access_get_global_level() function.
mod - core/access_api.php Diff File

master c7067342

2025-03-07 08:04

raspopov

Committer: dregad


Details Diff
Add Debug Log event counter indicator

Fixes 0035551

Co-authored-by Damien Regad <dregad@mantisbt.org>
Affected Issues
0035551
mod - core/logging_api.php Diff File

master 043229c3

2025-03-06 10:14

raspopov

Committer: dregad


Details Diff
Make Debug Log section collapsible

Fixes 0035551

Co-authored-by Damien Regad <dregad@mantisbt.org>
Affected Issues
0035551
mod - core/logging_api.php Diff File

master 5dd6d006

2025-03-06 07:06

translatewiki.net


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

master 7117608f

2025-03-06 06:48

dregad


Details Diff
Fix PHPDoc / static analysis warnings
mod - core/logging_api.php Diff File

master bcf56408

2025-03-06 06:47

dregad


Details Diff
Localize 'Debug Log' string

Fixes 0035551
Affected Issues
0035551
mod - lang/strings_english.txt Diff File

master 8203d185

2025-03-06 06:46

dregad


Details Diff
Identify duplicate DB queries in Debug Log to page

Commit b795b259463deca6e15806369a070c3b2fa45322 removed the CSS class
`duplicate-query`.

This restores the formatting, selected color matches the section title
(widget-color-red).

Fixes 0035551
Affected Issues
0035551
mod - css/default.css Diff File

master d3948320

2025-03-06 06:39

dregad


Details Diff
Refactor log_print_to_page()

- use HEREDOC instead of individual echo statements
- Fix invalid HTML
- Use helper_log_to_page()
- Use a single loop instead of 2 to process log events

Fixes 0022098, 0035551
Affected Issues
0022098, 0035551
mod - core/logging_api.php Diff File

master 2ebef4ea

2025-03-05 12:56

dregad


Details Diff
Restore included pages functionality

- Restored working of top_include_page and bottom_include_page options.
- Restored generation of EVENT_LAYOUT_PAGE_HEADER event.
- Added dynamic footer resizing.

The top_include_page file is included within the navbar element, which
is fixed at the top of the page; the bottom_include_page file is
included within an existing footer or as a footer itself (on login
pages), which is also fixed at the bottom of the page. Because of this,
the include template must contain, for example, a div element with a
solid background.

Fixes 0035402, 0022250, 0022098, 0021113
PR https://github.com/mantisbt/mantisbt/pull/2102
Affected Issues
0021113, 0022098, 0022250, 0035402
mod - config_defaults_inc.php Diff File
mod - core/html_api.php Diff File
mod - core/layout_api.php Diff File
mod - css/ace-mantis.css Diff File
mod - docbook/Admin_Guide/en-US/config/html.xml Diff File
mod - js/common.js Diff File

master c076bc56

2025-03-05 12:33

dregad


Details Diff
Fix PHP TypeError calling gpc_get_string_array()

Argument 2 passed to gpc_get_string_array() must be of the type array,
null given, called in .../core/gpc_api.php on line 213

Regression introduced by c939e5574556a2986bdd23d2ba9369d03595c269.

Fixes 0035215
Affected Issues
0035215
mod - core/gpc_api.php Diff File

master e5e4dfb7

2025-03-04 11:45

raspopov

Committer: dregad


Details Diff
Replace use of extra string_url()

With powerful helper_url_combine().

Signed-off-by: Damien Regad <dregad@mantisbt.org>

Fixed merge conflict in access_api.php / access_denied() function due to
merging PR https://github.com/mantisbt/mantisbt/pull/2121 (commit
8eeb3953ebe8dfbeb7beffa660bc6d40676c9681) first.
mod - core/access_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/string_api.php Diff File
mod - login_anon.php Diff File
mod - login_page.php Diff File
mod - login_select_proj_page.php Diff File

master 5393a566

2025-03-04 11:42

raspopov

Committer: dregad


Details Diff
Replace the use of urlencode()/rawurlencode()

With string_url() and helper_url_combine().
mod - billing_export_to_excel.php Diff File
mod - core/csv_api.php Diff File
mod - core/excel_api.php Diff File
mod - core/filter_api.php Diff File
mod - core/html_api.php Diff File
mod - core/http_api.php Diff File
mod - core/install_helper_functions_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/print_api.php Diff File
mod - core/string_api.php Diff File
mod - core/summary_api.php Diff File
mod - excel_xml_export.php Diff File
mod - manage_proj_page.php Diff File
mod - tag_view_page.php Diff File

master 81bc94cc

2025-03-04 11:36

raspopov

Committer: dregad


Details Diff
Replace the use of http_build_query()

With helper_url_combine().
mod - adm_config_report.php Diff File
mod - admin/check/check_database_inc.php Diff File
mod - admin/check/index.php Diff File
mod - bug_report.php Diff File
mod - core/filter_form_api.php Diff File
mod - core/html_api.php Diff File
mod - login.php Diff File
mod - login_password_page.php Diff File
mod - my_view_inc.php Diff File
mod - print_all_bug_page.php Diff File
mod - query_store.php Diff File
mod - set_project.php Diff File
mod - timeline_inc.php Diff File

master e23e43c3

2025-03-04 11:06

raspopov

Committer: dregad


Details Diff
Add helper_url_combine() test
mod - core/helper_api.php Diff File
add - tests/Mantis/Helper/UrlCombineTest.php Diff File

master fa1df957

2025-03-03 22:50

raspopov

Committer: dregad


Details Diff
Extend the use of the query parameter

Extended the allowed parameter types of helper_url_combine(),
auth_login_page(), auth_credential_page(),
AuthFlags::getCredentialsPage() functions that accepted a query string
to also accept an array of query parameters.

Fixes 0035424
Affected Issues
0035424
mod - core/authentication_api.php Diff File
mod - core/classes/AuthFlags.class.php Diff File
mod - core/helper_api.php Diff File

master 1fc7edc3

2025-03-02 06:03

vboctor


Details Diff
Simplifying the logic for header injection and having better context

Fixes 0035288
Affected Issues
0035288
mod - core/classes/EmailSenderPhpMailer.class.php Diff File

master 197d901a

2025-03-02 05:07

vboctor


Details Diff
Fix missing headers

Fixes 0035288
Affected Issues
0035288
mod - core/email_api.php Diff File

master 18170606

2025-03-02 04:59

vboctor


Details Diff
Allow inheriting from EmailSenderPhpMailer and injecting headers

Fixes 0035288
Affected Issues
0035288
mod - core/classes/EmailSenderPhpMailer.class.php Diff File

master 2a458bb8

2025-03-02 04:49

vboctor


Details Diff
Move pre-processing of headers to core code

Fixes 0035288
Affected Issues
0035288
mod - core/classes/EmailSender.class.php Diff File
mod - core/classes/EmailSenderPhpMailer.class.php Diff File
mod - core/email_api.php Diff File

master e5a5790a

2025-03-02 04:21

vboctor


Details Diff
Added doc in admin guide referring to TestEmailSender plugin

Fixes 0035288
Affected Issues
0035288
mod - docbook/Admin_Guide/en-US/config/email.xml Diff File

master b9e8ba6c

2025-03-02 04:18

vboctor


Details Diff
Remove usage of DIRECTORY_SEPARATOR

Fixes 0035288
Affected Issues
0035288
mod - core/classes/EmailSender.class.php Diff File
mod - core/classes/EmailSenderPhpMailer.class.php Diff File

master 8ddfeea2

2025-03-01 18:36

dregad


Details Diff
Merge tag 'release-2.27.1'

Stable release 2.27.1

# Conflicts:
# core/constant_inc.php
mod - doc/CREDITS Diff File
mod - .mailmap Diff File
 First  Prev  1 2 3 ... 7 8 9 10 11 12 13 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 560 ... 630 ... 700 ... 733 734 735  Next  Last