Commit Graph

159 Commits

Author SHA1 Message Date
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
Rupert-RR
1c0fb69add Typo corrections 2013-03-18 15:03:25 +04:00
Rupert-RR
e3897e85e2 Separated out parse and compare functions.
Reduced regular expression count to 2 from 3.
Modified MIME type array map structure.
2013-03-18 14:45:39 +04:00
Rupert-RR
a5b8240347 Merge remote-tracking branch 'upstream/master' into
2131-add-accept-header-parsing

Conflicts:
	CHANGELOG
2013-03-15 00:02:17 +04:00
Alexander Makarov
e37a9fe3e2 Refactored CHttpRequest::getDelete and CHttpRequest::getPut not to use _restParams directly 2013-03-06 02:08:13 +04:00
Rupert-RR
6a864f9890 Enh #2131: Added Accept header parsing to CHttpRequest to give an array
of accepted types in order of preference
2013-02-20 18:46:43 +04:00
Etienne Quiel
0324c5d2f7 fix: empty array were not handled 2013-01-22 11:00:04 +01:00
Etienne Quiel
7fd79cee09 using tabs for indentation 2013-01-22 10:48:46 +01:00
Etienne Quiel
2c6dbf21fc CHttpRequest::stripSlashes() changed to modify array keys as well 2013-01-22 10:43:04 +01:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Carsten Brandt
a0c5171706 Merge pull request #1523 from Ragazzo/1279-CHttpRequest-another-fix
Small fix for CHttpRequest to send valid content-length and output
2012-11-28 11:46:41 -08:00