From 4a6f5b7ce574cdb663573c265fefed35a998dd26 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 29 Jan 2024 08:20:16 -0600 Subject: [PATCH] updating changelog --- CHANGELOG-5.0.md | 1 + phalcon/Http/Request.zep | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG-5.0.md b/CHANGELOG-5.0.md index c47eb143ca..b6d748328b 100644 --- a/CHANGELOG-5.0.md +++ b/CHANGELOG-5.0.md @@ -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 diff --git a/phalcon/Http/Request.zep b/phalcon/Http/Request.zep index 97fb800a67..12cd49a6bc 100644 --- a/phalcon/Http/Request.zep +++ b/phalcon/Http/Request.zep @@ -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); }