Skip to content

Commit

Permalink
updating changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jan 29, 2024
1 parent d968fc9 commit 4a6f5b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Fixed `Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns()` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)
- Fixed `Phalcon/Filter/Validation::validate()` and `Phalcon/Filter/Validation/ValidationInterface::validate()` to return also `bool` [#16337](https://github.com/phalcon/cphalcon/issues/16337)
- Fixed `Phalcon\Mvc\Model::toArray` to ignore getters when the field name is `source`. [#16514](https://github.com/phalcon/cphalcon/issues/16514)
- Fixed `Phalcon\Http\Request::getPut` to correctly get form encoded data [#16519](https://github.com/phalcon/cphalcon/issues/16519)

### Removed

Expand Down
11 changes: 7 additions & 4 deletions phalcon/Http/Request.zep
Original file line number Diff line number Diff line change
Expand Up @@ -1721,10 +1721,13 @@ class Request extends AbstractInjectionAware implements RequestInterface, Reques
if null === cached {
let contentType = this->getContentType();

if typeof contentType == "string" &&
(stripos(contentType, "json") != false ||
stripos(contentType, "multipart/form-data") !== false) {

if (
typeof contentType == "string" &&
(
stripos(contentType, "json") != false ||
stripos(contentType, "multipart/form-data") !== false
)
) {
if (stripos(contentType, "json") != false) {
let cached = this->getJsonRawBody(true);
}
Expand Down

0 comments on commit 4a6f5b7

Please sign in to comment.