6602 Commits

Author SHA1 Message Date
Michal Sniatala
c430f34720
fix: set headers for CORS (#9437)
Some checks failed
PHPUnit / DatabaseLive (MySQLi, 5.7, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.4) (push) Has been cancelled
PHPUnit / SeparateProcess (8.1) (push) Has been cancelled
PHPUnit / SeparateProcess (8.2) (push) Has been cancelled
PHPUnit / SeparateProcess (8.3) (push) Has been cancelled
PHPUnit / SeparateProcess (8.4) (push) Has been cancelled
PHPUnit / CacheLive (8.1) (push) Has been cancelled
PHPUnit / CacheLive (8.2) (push) Has been cancelled
PHPUnit / CacheLive (8.3) (push) Has been cancelled
PHPUnit / CacheLive (8.4) (push) Has been cancelled
PHPUnit / Upload coverage results to Coveralls (push) Has been cancelled
* fix: set everything in the before filter for CORS

* fix append vary header

* cors: apply response headers in the after filter only if they are not already set

* cs fix
2025-02-08 19:43:28 +01:00
neznaika0
efcabb3fdf
docs: Add info about Router::getMatchedRouteOptions() (#9441)
Some checks are pending
Deploy User Guide (latest) / Deploy to gh-pages (push) Waiting to run
AutoReview / Automatic Code Review (push) Waiting to run
AutoReview / Check normalized composer.json (push) Waiting to run
Coding Standards / PHP 8.1 Lint with PHP CS Fixer (push) Waiting to run
Coding Standards / PHP 8.4 Lint with PHP CS Fixer (push) Waiting to run
Check File Permissions / Check File Permission (push) Waiting to run
Psalm / Psalm Analysis (push) Waiting to run
* docs: Add info about `Router::getMatchedRouteOptions()`

* fix: Apply suggestions
2025-02-08 01:47:32 +08:00
grimpirate
73d5d3f813
Typo fix, classname misspelled (#9444) 2025-02-08 01:46:08 +08:00
Thomas Nguyen
909e9b0a1a
fix(CURLRequest): multiple header sections after redirects (#9426)
Some checks failed
PHPUnit / DatabaseLive (MySQLi, 5.7, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (MySQLi, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (OCI8, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (Postgre, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLSRV, 8.0, 8.4) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.1) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.2) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.3) (push) Has been cancelled
PHPUnit / DatabaseLive (SQLite3, 8.0, 8.4) (push) Has been cancelled
PHPUnit / SeparateProcess (8.1) (push) Has been cancelled
PHPUnit / SeparateProcess (8.2) (push) Has been cancelled
PHPUnit / SeparateProcess (8.3) (push) Has been cancelled
PHPUnit / SeparateProcess (8.4) (push) Has been cancelled
PHPUnit / CacheLive (8.1) (push) Has been cancelled
PHPUnit / CacheLive (8.2) (push) Has been cancelled
PHPUnit / CacheLive (8.3) (push) Has been cancelled
PHPUnit / CacheLive (8.4) (push) Has been cancelled
PHPUnit / Upload coverage results to Coveralls (push) Has been cancelled
* fix: strip out multiple header sections for redirect

* test: add test for stripping out multiple redirect header sections

* docs: changelog for fixing returning multiple header sections after redirects

* Added a non-standard http redirect code test

* apply cs-fix for test

* Moved redirect header loop to a separate function

* Updated changelog to be clearer
2025-01-23 09:28:25 +08:00
John Paul E. Balandan, CPA
d9686083cd
docs: add changelog and upgrade for v4.6.1 (#9425)
Some checks failed
Deploy User Guide (latest) / Deploy to gh-pages (push) Has been cancelled
Check File Permissions / Check File Permission (push) Has been cancelled
2025-01-20 20:32:05 +08:00
John Paul E. Balandan, CPA
190f720253
Prep for 4.6.0 release (#9419) 2025-01-20 02:08:57 +08:00
John Paul E. Balandan, CPA
1221b85e0b
Merge branch 'develop' into 4.6 2025-01-20 00:18:29 +08:00
John Paul E. Balandan, CPA
3abaf4bc23
Prep for 4.5.8 release (#9415) 2025-01-19 23:30:07 +08:00
John Paul E. Balandan, CPA
6414090ebe
Merge branch 'develop' into 4.6 2025-01-19 22:21:16 +08:00
Ngô Quốc Đạt
97a6d66640
fix: ensure csrf token is string (#9365)
* fix: ensure csrf token is string

* fix: ensure csrf token is string

* handle request php://input

* handle request php://input

* wip

* wip

* wip

* wip

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* wip

Co-authored-by: Michal Sniatala <michal@sniatala.pl>

* Update user_guide_src/source/changelogs/v4.5.8.rst

* Use data providers

---------

Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2025-01-18 22:33:37 +08:00
Michal Sniatala
5f8aa24280
Merge commit from fork
Co-authored-by: neznaika0 <ozornick.ks@gmail.com>
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2025-01-18 11:54:38 +01:00
neznaika0
17d6adeee4
refactor: Remove deprecation related to cookies (#9406)
* refactor: Remove deprecated `Config\Security::$samesite`

* refactor: Remove deprecated methods in `CookieStore`

* docs: Update changelog

* refactor: Update phpstan baseline

* docs: Update userguide

* refactor: Remove deprecated  `Cookie::withNeverExpiring()`

* docs: Update changelog, userguide
2025-01-14 13:50:28 +08:00
neznaika0
35321ac6c2
refactor: Remove deprecated Config\Format::getFormatter() (#9405)
* refactor: Remove deprecated `Config\Format::getFormatter()`

* docs: Update changelog
2025-01-13 14:59:49 +08:00
neznaika0
23f2559369
docs: Update changelog 2025-01-13 07:55:11 +03:00
neznaika0
b635a1790f
refactor: Remove deprecated View::$currentSection (#9403)
* refactor: Remove deprecated `View::$currentSection`

* docs: Update changelog
2025-01-13 12:51:25 +08:00
neznaika0
4c16324780
refactor: Remove deprecated EVENT_PRIORITY_* (#9401)
* refactor: Remove deprecated `EVENT_PRIORITY_*`

* docs: Update changelog, userguide
2025-01-13 11:34:13 +08:00
John Paul E. Balandan, CPA
797d37751a
Merge branch 'develop' into 4.6 2025-01-13 11:15:24 +08:00
John Paul E. Balandan, CPA
c3ac0f9483
chore: add more trailing commas in more places (#9395)
* Apply to parameters

* Apply to array destructuring

* Apply to match

* Apply for arguments
2025-01-13 11:03:02 +08:00
neznaika0
f67bc687d5
refactor: Remove deprecated RedirectException (#9399)
* refacror: Remove CodeIgniter\Router\Exceptions\RedirectException

* docs: Update changelog, userguide
2025-01-12 03:12:59 +08:00
Michal Sniatala
1f7e106384
docs: changelog entry for phpini:check command (#9400) 2025-01-11 17:46:04 +01:00
Curious Team
69540b367e
Update running.rst to fix the reference for adding host alias in windows.
Reference shows in the user guide like "c:WindowsSystem32driversetchosts" without any backslash. Used double backslash to fix the reference.
2025-01-11 15:51:03 +06:00
Abdul Malik Ikhsan
49df643d9b
Merge pull request #9394 from paulbalandan/get-class-to-class-keyword
style: enable `get_class_to_class_keyword` fixer
2025-01-10 04:58:09 -08:00
Denny Septian Panggabean
4ee48ac985
chore: update 2025 for copyright (#9393) 2025-01-10 15:24:14 +08:00
John Paul E. Balandan, CPA
5060bdce81
style: enable get_class_to_class_keyword fixer 2025-01-10 13:39:44 +08:00
neznaika0
76cd73ff14
fix: Update changelog 2025-01-10 08:33:17 +03:00
neznaika0
b57def9d14
fix: typo 2025-01-10 08:33:16 +03:00
neznaika0
042dbeabb1
fix: docs title underline too short 2025-01-10 08:33:16 +03:00
neznaika0
96d640d9d5
docs: Add description for command 2025-01-10 08:33:15 +03:00
neznaika0
4ffb69c802
docs: Add changelog 2025-01-10 08:33:15 +03:00
Murilo Henrique Pucci
d9aca420f4
feat: add page start end total to PagerRenderer (#9371)
* Add some methods to the page renderer to make easier to
get the first item, the last item and the total of items.

* Add type hint to the new per page variable on the page renderer.

* Create more tests for the page start and end, and improve the comment of the variables from the PagerRenderer class.

* Add a documentation and also improve some comments.

* Use version added instead of warning on the documentation

* Add changelog.

* Fix CR issues.

* Add null as the default value for perPageStart and End
2025-01-08 02:46:05 +08:00
neznaika0
c79d3a9758
fix: Add support for multibyte strings (#9372)
* fix: Truncate multibyte namespaces in command

* fix: Add support multibyte to `View->excerpt()`

* fix: Add support multibyte to `excerpt()` helper

* docs: Update changelog

* fix: Improve readability `excerpt()`

* refactor: Rework `character_limiter()`

* refactor: Rework test `TextHelper`

* docs: Move to 4.6 branch
2025-01-08 02:37:23 +08:00
michalsn
c3bfac5261
Merge remote-tracking branch 'upstream/develop' into 4.6
# Conflicts:
#	composer.json
#	utils/phpstan-baseline/missingType.iterableValue.neon
2025-01-06 09:51:34 +01:00
neznaika0
cc96fe3639
feat: Strict locale negotiation (#9360)
* feat: Add parameter for locale comparison

* feat: Update language negotiator

* tests: Update `NegotiateTest`

* docs: Update userguide

* fix: Rename feature option

* feat: Add `getBestLocaleMatch()`

* tests: Update `Negotiate` tests

* docs: Update docs

* fix: Rename feature option to back

* docs: Update the description for Negotiation

* fix: Update with the renamed option

* fix: Delete checking *.*

* fix: Move code to  file
2025-01-05 12:40:35 +08:00
Michal Sniatala
046967af08
fix: gather affected rows after query call failed (#9363)
* fix: gather affected rows after query call failed

* update user guide

* fix test

* fix test

* fix failing tests for mysqli - enable strict mode

* cs fix
2025-01-03 06:57:55 +01:00
John Paul E. Balandan, CPA
4764fe3b7f
Merge branch 'develop' into 4.6 2025-01-01 21:33:45 +08:00
John Paul E. Balandan, CPA
8e0bb04262
docs: add changelog and upgrade for v4.5.8 (#9359) 2024-12-31 22:49:18 +08:00
John Paul E. Balandan, CPA
eec3739823
Merge remote-tracking branch 'upstream/develop' into 4.6 2024-12-31 20:22:12 +08:00
John Paul E. Balandan, CPA
e8cd894fdf
Prep for 4.5.7 release (#9357) 2024-12-31 19:56:33 +08:00
John Paul E. Balandan, CPA
d7ce2ba7d3
fix: Forge::dropColumn() always returns false on SQLite3 driver (#9351) 2024-12-31 18:41:07 +08:00
Abdul Malik Ikhsan
c942fd9e0b
Update user_guide_src/source/changelogs/v4.5.7.rst
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2024-12-30 21:33:16 +07:00
Abdul Malik Ikhsan
c61cb4a839
chore: add changelog for bug fix helper() throw FileNotFoundException on valid namespaced helper 2024-12-30 21:29:32 +07:00
John Paul E. Balandan, CPA
65219d74d0
style: bump to php-cs-fixer v3.66 2024-12-30 21:06:37 +08:00
John Paul E. Balandan, CPA
0bc67dbb21
docs: add changelog and upgrade for v4.5.7 (#9347) 2024-12-29 15:53:24 +08:00
John Paul E. Balandan, CPA
4a0d845fd7
Merge branch 'develop' into 4.6 2024-12-29 02:35:17 +08:00
John Paul E. Balandan, CPA
6785d8f56d
Prep for 4.5.6 release (#9344) 2024-12-29 01:19:15 +08:00
John Paul E. Balandan, CPA
c7548a3771
Merge branch 'develop' into 4.6 2024-12-29 00:21:53 +08:00
Michal Sniatala
22b8e9e9d9
fix: prioritize headers set by the Response class (#9235)
* fix: prioritize headers set by the Response class

* cs fix

* add a note to the user guide

* docs: add an example to the header changes

* Update user_guide_src/source/changelogs/v4.6.0.rst

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>

---------

Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
2024-12-27 13:11:59 +01:00
Michal Sniatala
6cbbf601b0
fix: handling binary data for prepared statement (#9337)
* fix prepare statement sqlite

* fix prepare statement postgre

* fix prepare statement sqlsrv

* fix prepare statement oci8

* tests

* abstract isBinary() method

* fix prepare statement mysqli

* fix prepare statement oci8

* sqlsrv blob support

* fix tests

* add changelog

* fix rector

* make sqlsrv happy

* make oci8 happy - hopefully

* add a note about options for prepared statement

* ignore PreparedQueryTest.php file

* apply code suggestion for oci8
2024-12-27 08:14:06 +01:00
John Paul E. Balandan, CPA
bd5945df9b
Merge branch 'develop' into 4.6 2024-12-19 16:39:09 +08:00
Andi Fahruddin Akas
cc2dcee4ed
docs: variable naming adjustments (#9324)
* Update 006.php

* Update 008.php

* Update 046.php
2024-12-16 19:31:13 +08:00