Commit Graph
3115 Commits
Author SHA1 Message Date
Yağızhan Burak Yakarandadmdly ef795ffcdb Honor "hide_version_public" setting in JSON response headers (#3394)
* Honor "hide_version_public" setting while setting JSON headers

* Fix PHPUnit tests to mock shouldExposeVersion() after refactoring

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-04-08 13:06:27 +03:00
Adam DaleyandCopilot Autofix powered by AI 007ec477be Fixes for 2 code quality findings in Directadmin server manager (#3400)
* Apply suggested fix to src/library/Server/Manager/Directadmin.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/library/Server/Manager/Directadmin.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-04-08 07:53:43 +01:00
Copilotandadmdly 230b285dd7 Fix SSL typo, invalid transaction status, and unsafe array access in APIHelper (#3399)
* Initial plan

* Fix typos, invalid transaction status, and unsafe array access in APIHelper

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/5ec74911-4de8-4620-a3e3-cd6e36a975fb

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Fix getHasSll typo in Directadmin.php to match baseline suppression

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/e74d2b4a-d375-4c99-b557-9050dc9f0c55

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-04-08 07:46:23 +01:00
Adam DaleyandCopilot Autofix powered by AI 308bde5c6a Fix for 1 code quality finding in Plesk server manager (#3398)
Apply suggested fix to src/library/Server/Manager/Plesk.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-04-08 07:20:55 +01:00
FOSSBilling BotandFOSSBilling Bot 3b14e9214b Apply PHP Code Styling & Quality Changes (#3393)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-04-08 06:48:11 +01:00
Yağızhan Burak Yakar f54bfbf62d Fix parameter types (#3397)
* Cast parameters before passing them to number_format

* Fix parameter type

* Fix parameter type

* Pass integer values directly as well

* Fixed unrelated bug from #3365 - cc: @admdly

"Unknown "list" filter. Did you mean "last" in "mod_order_manage.html.twig" at line 424?"

--

Removed the "list" filter. This should already be iterable by itself, what's "list" supposed to do?
2026-04-08 06:21:12 +01:00
Adam Daley 435944defa Refactor pagination and API with strict types and validation (#3391)
* Add strict types; refactor pagination, tools & API

* Replace `Box_Paginator` with FOSSBilling `Paginator`

* Clarify paginator comment wording

* Validate JSON response and include HTTP code

* Cast language params to bool and add JSON preview
2026-04-06 22:06:13 +01:00
renovate[bot] 2f57e30d4b chore(deps): update dependency sass to v1.99.0 (#3390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-06 16:35:40 +01:00
renovate[bot] 65877183d6 chore(deps): update dependency esbuild to v0.28.0 (#3389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-06 16:12:25 +01:00
renovate[bot] 3d65c2726f chore(deps): update dependency esbuild to v0.27.7 2026-04-06 01:24:24 +00:00
renovate[bot] b90b6601ec chore(deps): update dependency esbuild to v0.27.5 2026-04-05 01:16:10 +00:00
FOSSBilling BotandFOSSBilling Bot 915dc56d0e Apply PHP Code Styling & Quality Changes (#3384)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-03-31 19:53:03 +01:00
c382a7a995 Code quality: type hints, method renames, null guards, and test fixes across Formbuilder, Page, Invoice, and Theme modules (#3380)
* Initial plan

* Apply code quality improvements: rename methods, add type hints, fix null checks, improve tests

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/7815527d-3f30-486a-9f69-232031ba2d6e

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Use `isValidFieldType` instead of `typeValidation`

* Allow rendered privacy policy HTML

Remove the Twig escape filter from the company privacy policy output so the HTML produced by the markdown filter is rendered. This change ensures markdown-generated markup displays correctly in the privacy policy card instead of being HTML-escaped.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-03-29 08:49:49 +01:00
9c2a4d521c Add file-backed email templates (#3372)
* Add `is_custom` and file-backed email templates

* Detect and handle missing default email templates

* Standardize capitalization in email templates

* Group OR conditions with parentheses in queries

* Add `is_custom` and file-backed email templates

* Detect and handle missing default email templates

* Standardize capitalization in email templates

* Group OR conditions with parentheses in queries

* Fix test expectations to match updated OR condition SQL format

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/932b3ffe-6478-4ed4-b74d-a1af2681ff0d

* Update src/modules/Email/templates/admin/mod_email_template.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Wrap order status OR conditions in parentheses

* Add tests to preserve client scope in searches

* Optimize `getTemplateList`: DB-level filtering/pagination, remove per-request batch sync (#3373)

* Optimize getTemplateList: DB-level filtering, pagination, remove templateBatchGenerate from list

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/fab0e6c0-51ef-4501-98f8-f5ab823816ab

* Fix test: remove stale decrypt expectation now that list uses deep=false

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/6a891d33-a7dc-436d-9bd2-4a48923d91d7

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Add test for resetting custom email template

* Add `is_overridden` flag for email templates

* Improve detection of overridden email templates

* Update src/modules/Email/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Detect template overrides by comparing defaults

* Migrate Email module to Doctrine

* Ignore whitespace when comparing email templates

* Use Doctrine `EmailTemplate` repo; update tests

* Avoid re-enabling templates; handle rows

* Add email template schema check and row mapping

* Add Type and Status columns to email templates

* Limit run-patcher & remove email schema migration

* Update tests-legacy/modules/Email/Api/Api_AdminTest.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/library/FOSSBilling/UpdatePatcher.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Email/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Email/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update tests-legacy/modules/Email/ServiceTest.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix getTemplateList skipping EmailTemplate entities from pagination result (#3379)

* Initial plan

* Fix getTemplateList to handle EmailTemplate entities from pagination result

Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/5567a644-4032-40aa-a6af-8eda8cbcea36

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-28 03:38:20 +00:00
FOSSBilling BotandFOSSBilling Bot 41adc03d57 Apply PHP Code Styling & Quality Changes (#3375)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-03-27 08:50:47 +00:00
Adam Daley 3d51718d83 Capitalise titles in templates (#3374)
Capitalize titles in Twig templates
2026-03-26 07:25:50 +00:00
Copilotandadmdly 8c0e838983 Fix legacy var declarations, deprecated toGMTString(), and weak uniqid() in tests (#3370)
* Initial plan

* Fix var declarations, deprecated toGMTString(), and improve uniqid() entropy

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/03b1e492-4f8d-478b-8e7d-7e65a592a723

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-25 17:44:48 +00:00
FOSSBilling Bot 3847ebb216 Apply PHP Code Styling & Quality Changes (#3369) 2026-03-25 00:06:34 +00:00
Adam Daley 717953f1f3 Fix manual order form_id, add invoice product selector, and improve tab & URL parameter support (#3172)
* Fix multiple issues: #2902, #2831, #2774, #2794

- Fix #2902: Save form_id when admin creates order manually
- Fix #2831: Add product dropdown when preparing invoice
- Fix #2774: Support ?tab URL parameter to pre-select tabs
- Fix #2794: Support URL parameters for pre-selecting order form values

For issue #2902:
When admins create orders manually, the form_id field was not being saved,
preventing form builder fields from appearing in "Edit order config" tab.
Now saves form_id from product to maintain compatibility.

For issue #2831:
Added product selector to invoice preparation form that allows admins to
select products from existing catalog instead of manually typing
product names and prices. Selected products are added as invoice items.

For issue #2774:
Added URL parameter parsing to pre-select tabs when page loads.
Supports ?tab=tabname parameter in URLs, useful for pagination and
direct links to specific tabs.

For issue #2794:
Added URL parameter support for pre-filling order form values:
- period: Pre-select billing cycle (e.g., ?period=1Y)
- name: Pre-fill domain name (for domain orders)
- tld: Pre-select TLD (for domain orders)

* Fix JavaScript syntax error - remove duplicate DOMContentLoaded event listener

* Enhance invoice product selection and admin JS

* Clarify client selector placeholder text

* Pre-fill domain form via URL params
2026-03-24 01:17:46 +00:00
Copilotandadmdly 80904bf305 Fix test code quality issues in Invoice, Order, and Theme service tests (#3368)
* Initial plan

* Fix test code quality issues in Invoice, Order, and Theme service tests

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c1924b0a-fdc2-47a8-83e0-7cbd543023bc

* Fix CI failures: remove invalid RuntimeException throw, lowercase 'currency' in Service.php, remove void return assertion

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/f9b14015-5296-458e-b57e-252972989402

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-24 00:33:50 +00:00
e18fe0062d Set form_id from product when admin creates order (#3365)
* Set `order form_id` and validate config

* Update src/modules/Order/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* [WIP] [WIP] Address feedback on setting form_id in order creation PR (#3366)

Initial plan

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* fix(Order): Render formbuilder fields in Edit order config tab

When an order has a form_id, the Edit order config tab now renders all
formbuilder fields with proper input types (text, select, checkbox,
radio, textarea) instead of just showing existing config keys.

This completes the fix for admin-created orders not showing formbuilder
fields in the order config editor.

Fixes #2902

* Add unit tests for `updateOrderConfig()` form validation paths (#3367)

* Initial plan

* Add unit tests for updateOrderConfig() validation (required field, select/radio/checkbox options)

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/3fe9a767-5075-4d33-9e2c-cee02f03c7f1

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-24 00:07:54 +00:00
65a028ef1e Normalize Massmailer filters and migrate to Doctrine entities (#3360)
* Normalize and validate Massmailer filters

* Migrate Massmailer to Doctrine entities

* Add strict typing to Massmailer API and Service

* Use DBAL/Doctrine for modules and add `ExtensionMeta`

* Fix PHPDoc `@return` type mismatch in Massmailer Admin API (#3361)

* Initial plan

* Fix PHPDoc @return type mismatch in Massmailer Admin API

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/bc7567ec-98df-4f54-83b9-06906daa43f1

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Update src/modules/Redirect/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update tests-legacy/modules/Massmailer/ServiceTest.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Notification/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix TypeError in Massmailer `create()` when entity ID is null post-flush (#3362)

* Initial plan

* Throw exception when create() returns null ID instead of causing TypeError

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/a842fa3a-e1ff-40b8-b038-30b789ff3499

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

* Fix test assertion for DBAL integer return type in Massmailer ServiceTest (#3364)

* Initial plan

* fix: update test assertion to expect int id from DBAL query

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/c18cfc23-4f38-4d1e-8468-03b332a6760d

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>

* Fix `TypeError` in Massmailer `copy()` and `create()` due to nullable ID return (#3363)

* Initial plan

* Fix nullable ID return type mismatch in Massmailer Admin API copy() and create()

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/b52c3722-adfe-4772-8bb4-628b1b56e989

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-23 22:27:55 +00:00
Copilotandadmdly b47ef9d237 Refactor invoice template layout constants, fix divider rendering, and correct typos (#3358)
* Initial plan

* Fix magic numbers, typos, and code quality issues in Invoice template and System/Invoice services

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/cddfc8bc-b60d-4544-9e8a-ed5452e49ce1

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-23 07:26:12 +00:00
Adam Daley 256dc0570f Remove client-side invoice deletion and add unpaid invoice button (#3356)
* Remove client-side invoice delete feature

- Remove delete() method from Invoice Client API
- Remove deleteInvoiceByClient() from Invoice Service
- Remove client delete button from admin invoice template
- Remove related test methods

* Add Delete button for unpaid invoices
2026-03-21 19:13:49 +00:00
Adam Daley f3e32ec43a Move and update paths for Invoice PDF templates (#3355)
* Move invoice PDF templates and update paths

* Migrate Invoice PDF templates to new location

* Bump `last_patch` to 51 in install SQL
2026-03-21 08:24:41 +00:00
Adam Daley 27b1d927d4 Improve file handling, safety, and default values (#3353) 2026-03-19 19:30:19 +00:00
dependabot[bot] cf865356bf Bump @dicebear/core from 9.4.0 to 9.4.1 in the npm_and_yarn group across 1 directory (#3352)
Bump @dicebear/core in the npm_and_yarn group across 1 directory

Bumps the npm_and_yarn group with 1 update in the / directory: [@dicebear/core](https://github.com/dicebear/dicebear).


Updates `@dicebear/core` from 9.4.0 to 9.4.1
- [Release notes](https://github.com/dicebear/dicebear/releases)
- [Changelog](https://github.com/dicebear/dicebear/blob/10.x/CHANGELOG.md)
- [Commits](https://github.com/dicebear/dicebear/compare/v9.4.0...v9.4.1)

---
updated-dependencies:
- dependency-name: "@dicebear/core"
  dependency-version: 9.4.1
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-19 18:33:41 +00:00
FOSSBilling BotandFOSSBilling Bot 34e8a10787 Apply PHP Code Styling & Quality Changes (#3351)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2026-03-19 13:41:16 +00:00
Adam DaleyandCopilot Autofix powered by AI b093b84924 Fix for 1 code quality finding in Page (#3350)
Apply suggested fix to src/modules/Page/templates/client/mod_page_privacy-policy.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-03-19 10:09:14 +00:00
Copilotandadmdly a17b1d6f44 Fix duplicate CSS class and mismatched HTML heading tags in templates (#3348)
* Initial plan

* Fix duplicate py-3 CSS class and mismatched HTML heading tags in templates

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-18 00:15:10 +00:00
Adam Daley 691c3f7aa7 Use templates/* directories for module templates (#3347)
* Use `templates/*` directories for module templates

* Update template globs and fix icon path
2026-03-17 21:28:15 +00:00
e8da57d4da Fix duplicate and missing renewals with improved idempotency (#3345)
* Fix duplicate/missing renewals on Stripe and PayPal callbacks (#3105)

* Fix duplicate and missing service renewals for Stripe and PayPal (#3105)

* Idempotency guard fix

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Improve payment idempotency and error handling

* Add processing status and atomic claim for txns

* Add processing recovery for transactions

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Milliam Mark <gerogewl@outlook.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-17 19:36:23 +00:00
Adam DaleyandCopilot Autofix powered by AI 7e42f5ed62 Fixes for 2 code quality findings in Tools library (#3344)
* Apply suggested fix to src/library/FOSSBilling/Tools.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/library/FOSSBilling/Tools.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-03-17 15:49:39 +00:00
Adam DaleyandCopilot Autofix powered by AI 8a5e0c82d8 Switch to per-service HttpClient for external IP (#3343)
* Switch to per-service `HttpClient` for external IP

Revert `getExternalIP()` back to foreach loop that explicitly tries each service, as `RetryableHttpClient` doesn't properly retry on timeout errors with multiple base URLs.

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-17 15:34:51 +00:00
e42504b274 Apply PHP Code Styling & Quality Changes (#3340)
* Apply PHP Code Styling & Quality Changes

* Use camelCase API method names in tests

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2026-03-17 14:15:03 +00:00
Copilotandadmdly 7ce4ff3f76 Fix cron logging, invoice status badges, address rendering, and test assertions (#3339)
Fix cron logging, invoice badge/address rendering, and test assertions

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-17 13:30:40 +00:00
Adam DaleyandCopilot Autofix powered by AI 960d951ee7 Fixes for 4 code quality findings in Invoice (#3337)
* Apply suggested fix to src/modules/Invoice/html_client/mod_invoice_print.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Invoice/html_client/mod_invoice_print.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Invoice/html_client/mod_invoice_print.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Invoice/html_client/mod_invoice_print.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-03-17 12:10:54 +00:00
Adam DaleyandCopilot Autofix powered by AI d3ede6abc4 Fixes for 3 code quality findings in Formbuilder (#3336)
* Apply suggested fix to src/modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-03-17 12:04:22 +00:00
Adam Daley 9513e234c5 Use optional chaining for new-form element (#3335) 2026-03-17 04:58:13 +00:00
Adam Daley 110a53ce8a Fix Invoice print template styles (#3334) 2026-03-17 04:39:43 +00:00
Copilotandadmdly 2d4599cb35 Fix type inconsistencies, standardize password placeholder, and clean up dead test code (#3332)
* Initial plan

* Fix: Standardize password placeholder, fix type inconsistencies, and clean up dead test code

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-16 23:48:10 +00:00
Adam DaleyandCopilot Autofix powered by AI ef81b58302 Fixes for 5 code quality findings in Servicehosting (#3329)
* Apply suggested fix to src/modules/Servicehosting/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Servicehosting/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Servicehosting/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Servicehosting/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Apply suggested fix to src/modules/Servicehosting/Service.php from Copilot Autofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-03-16 23:23:06 +00:00
renovate[bot] 538e1702ce chore(deps): update dependency esbuild to v0.27.4 2026-03-16 04:46:28 +00:00
Adam Daley 9e33c2210c Fix free-domain config handling and propagation (#3311) 2026-03-15 14:50:24 +00:00
renovate[bot] 4e36afb0ad chore(deps): update dependency sass to v1.98.0 (#3325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 16:16:59 +03:00
2e980e0a19 Add 'Due Date' column to invoice list (#3310)
* Add 'Due at' column to invoice list

* Update src/modules/Invoice/html_admin/mod_invoice_index.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Invoice/html_admin/mod_invoice_index.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Yağızhan Burak Yakar <yagizhan49@protonmail.com>
2026-03-15 16:15:46 +03:00
renovate[bot] 3eb6cefdac chore(deps): update dependency ckeditor5 to v47.6.1 2026-03-15 01:35:23 +00:00
34bb87882d Apply PHP Code Styling & Quality Changes (#3322)
* Apply PHP Code Styling & Quality Changes

* Fix Rector incorrectly renaming snake_case API test method to camelCase (#3324)

* Initial plan

* Fix Rector-renamed test method breaking _apiCall invocation

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-14 11:45:21 +00:00
Adam Daley e77da2efc1 Stripe - refine invoice handling & status mapping (#3323) 2026-03-13 02:42:22 +00:00
0d81f5d450 Enhance security and validation for sessions and file uploads (#3315)
* Sanitise email HTML; add session decoder

* Use signed session restore token for redirects

* Restrict invoice and service access to client

* Perform CSRF check regardless of session

* Validate uploaded files by extension/mime

* Use 32-byte random for reset hashes

* Use PBKDF2 SHA-256 for key derivation

* Add versioned encryption and migrate data

* Refactor Servicecustom API and update download validation

* Prefer token login when credentials present

* Update cspell word list with filetype terms

* Ignore token auth for guest requests

* Validate decrypted text and add fixed IV in test

* Bump `last_patch` setting to 50

* Update src/modules/Api/Controller/Client.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix CSRF/token auth interaction: token auth always bypasses CSRF regardless of session (#3318)

* Replace hand-rolled PHP session parser with unserialize() (#3317)

* Initial plan

* Replace buggy phpSessionDecode() with unserialize()

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>

* Fix migrateEncryptedColumn failing on tables without updated_at (#3316)

* Initial plan

* Fix migrateEncryptedColumn to skip updated_at when column doesn't exist

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>

* Guard `phpSessionDecode()` return type in `deleteSessionIfMatching` (#3319)

* Initial plan

* Guard phpSessionDecode() return type in deleteSessionIfMatching

Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: admdly <2807620+admdly@users.noreply.github.com>
2026-03-11 00:59:05 +00:00