170 Commits

Author SHA1 Message Date
ruslan
ec4f0d0592 Fix deprecated non-canonical casts to canonical forms
Replace deprecated non-canonical PHP casts with their canonical equivalents:
- (integer) → (int)
- (boolean) → (bool)
- (double) / (real) → (float)
- (binary) → (string)

This addresses PHP 8.5 deprecation warnings for non-canonical cast syntax.
2026-01-16 08:02:50 +01:00
Tommy
956f62c6f8 CHG: use symfony's polyfill to replace utf8_encode 2023-01-05 12:56:11 +01:00
Ivan Sinkarenko
9e7b86f508 Fix PHP 8.1 preg_match_all() deprecation warning in CHttpRequest 2022-08-22 09:44:42 +02:00
Arhell
fad0c5be77 update links 2022-08-07 11:54:16 +03:00
Marco van 't Wout
09f157132b Apply various fixes for "Passing null to parameter ..... of type string is deprecated" (ported from https://github.com/yiisoft/yii2/pull/19041) 2022-03-31 18:08:01 +02:00
Robert Korulczyk
de6ecdd84c Prevent fatal errors while validating CSRF token of malformed requests 2021-11-21 15:52:10 +01:00
Ken Guest
926a66c8f6 Fix #4279: PHP 7.4 compatibility: Drop use of accessing string offsets using curly braces 2019-12-03 00:02:49 +03:00
Konstantin Zinnen
0003100ca4 Fix #4273: PHP 7.3 compatibility: Add "sameSite" support for cookies 2019-11-11 18:51:25 +02:00
Carsten Brandt
0f136db89e fix indentation 2019-04-02 09:25:42 +02:00
Ken Guest
037832e691 Fixes #4234: CVE-2018-14773. Drop support for HTTP_X_REWRITE_URL 2018-12-30 17:18:47 -05:00
Martin Petrasch
68e5e86a11 Fixes #4220: Fixed PHP 7.2 incompatibility caused by the use of create_function in CHttpRequest 2018-08-18 21:09:59 +03:00
Alexander Makarov
7e45fa1a08 Fixes #2819: backported masking of CSRF tokens from Yii 2.0 2017-04-18 13:42:44 +03:00
Armano
26368deace Fix spelling in documentation and add missing/invalid documentation [skip ci] 2016-07-19 14:01:14 +03:00
Carsten Brandt
0c10c18c4f fixed indentation 2016-01-13 16:37:44 +01:00
Alexander Makarov
af2f2c0920 Merge pull request #3780 from Sibilino/3457-chttprequest-json-parse
Enh #3457: CHttpRequest able to decode JSON REST parameters.
2016-01-08 17:21:56 +03:00
Dmitri Vereshchagin
485c001e99 Fixes #3948: Enhanced CHttpRequest path info extraction for compatibility with PHP 7 2015-09-25 01:46:07 +03:00
Max Popov
2bab7ec97a Fixes #3833: Fixed CHttpRequest::sendFile() range support in case mbstring.internal_encoding=UTF-8 2015-04-02 21:06:36 +03:00
Luis Hernández
049ad19776 JSON decoding now supports parameters in header
As suggested by @cebe
2015-03-01 20:54:51 +01:00
Luis Hernández
6c20ef7f03 Improved descirption of $jsonAsArray 2015-02-27 19:07:10 +01:00
Luis Hernández
ccaf914a47 Enh #3457: CHttpRequest can now detect content type and decode JSON in REST method bodies.
Added getContentType()
Added jsonAsString
getRestParams can now use CJSON::decode
2015-02-27 18:59:30 +01:00
Carsten Brandt
147bc37c47 fixed broken code in CHTTPRequest
fixes #3700
2015-01-10 23:10:49 +01:00
Alexander Makarov
75ce903bd1 Reference request locally instead of going through app component 2014-11-03 21:08:48 +03:00
Alexander Makarov
d2e0af05f2 Fixes #3500: Framework now responds with HTTP protocol version requested 2014-11-03 20:39:34 +03:00
Carsten Brandt
38754bb259 bump @since version number for 1.1.15
they are in 1.1.16 now because 1.1.15 was a security release
2014-10-23 19:35:48 +02:00
Carsten Brandt
fafe5926cb Merge branch 'patch-2' of https://github.com/zvirusz/yii
* 'patch-2' of https://github.com/zvirusz/yii:
  Backport Request::getPreferredLanguage() from yii2
2014-04-22 23:44:08 +02:00
pzaremba
7b68959372 Adding support for the X-HTTP-Method-Override header. 2014-02-04 22:50:38 +01:00
Carsten Brandt
9a1eac10c4 reverted pull request #2671 for issue #2670 2014-01-29 01:40:05 +01:00
Jani Mikkonen
ca25bc19b8 Merge branch 'master' of git://github.com/yiisoft/yii into user_host_address 2014-01-28 15:44:28 +02:00
Carsten Brandt
000a2167a9 Updated Request::getIsSecureConnection()
now works case insensitive

fixes #3147
2014-01-28 14:11:09 +01:00
Carsten Brandt
5555becf7e Added support for HTTP PATCH requests to CHttpRequest
fixes #2664
2014-01-28 13:14:10 +01:00
Carsten Brandt
32b8f82e58 Update CHttpRequest.php
Improved fix in 2cc4a81713
2014-01-07 17:17:56 +01:00
Alexander Makarov
2cc4a81713 Fixed uninitialized string offset: -1 when accessing frontpage w/o slash 2014-01-07 16:35:58 +04:00
Alexander Makarov
3a8e8c58f0 Fixed homepage 404 2014-01-07 13:00:04 +04:00
Alexander Makarov
4e6c118e6e Fixed URL parsing so it's now properly giving 404 for URLs like "http://example.com//////site/about/////" 2014-01-07 04:55:11 +04:00
Andrey Janzen
7e1938fbd7 Backport Request::getPreferredLanguage() from yii2 2013-08-07 10:33:15 +07:00
Carsten Brandt
75eb9f9986 Changed header case Content-type to Content-Type
fixes #2709 fixes #2726
2013-08-03 11:25:20 +02:00
Jani Mikkonen
cee55e82ce Update getUserHostAddress() 2013-07-22 13:11:44 +03:00
Jani Mikkonen
760c95862f Update getUserHostAddress() 2013-07-22 12:37:30 +03:00
Jani Mikkonen
bd51c6fd5f Fix #2670 2013-07-22 12:02:53 +03:00
resurtm
e258247330 Fixed incorrect HTTPS detection. 2013-05-31 09:41:35 +06:00
Ragazzo
7ce904c189 code style fix 2013-05-16 19:35:35 +04:00
Ragazzo
6217048bdb fixed content end 2013-05-16 19:13:42 +04:00
Alexander Makarov
e46fecc19a Added 206 header, code style fixes 2013-05-12 00:59:25 +04:00
Alexander Makarov
1c22d19d57 Merge branch 'http-request-range-enh' of git://github.com/Ragazzo/yii into Ragazzo-http-request-range-enh 2013-05-11 23:58:05 +04:00
Ragazzo
2864d97d49 range-requests added 2013-05-08 15:59:10 +04:00
Carsten Brandt
7d91ceb26d php doc adjustments after #2132 2013-03-27 23:46:00 +01:00
Rupert-RR
2ae1700233 Added unit test file for CHttpRequest for the methods
parseAcceptHeader() and compareAcceptTypes().
Modified the regexp in parseAcceptHeader() to accept wildcards in the
path.
Modified the description of compareAcceptTypes() to better reflect the
comparison result (higher preference returns lower value, so that most
preferred is first in the array).
2013-03-21 20:19:56 +04:00
Rupert-RR
ae6bc4a99a parseAcceptHeader() function description tidy up. 2013-03-21 14:56:03 +04:00
Rupert-RR
57befeead0 Typo corrections and code tidy up. 2013-03-21 14:47:23 +04:00
Rupert-RR
c255592623 Altered parseAcceptHeader() to use only one regexp.
Thanks to Ka on StackExchange for this expression.
2013-03-21 10:23:55 +04:00