From 8c98d99596fdc77da72cf48741048d3fae0d0c58 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 24 Oct 2013 17:06:40 +0400 Subject: [PATCH] Removed fallback from mb_parse_str to parse_str from Request::getRestParams since mb_ availability is Yii2 requirement --- framework/yii/web/Request.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/yii/web/Request.php b/framework/yii/web/Request.php index f326f6e..610e907 100644 --- a/framework/yii/web/Request.php +++ b/framework/yii/web/Request.php @@ -246,11 +246,7 @@ class Request extends \yii\base\Request $this->_restParams = $_POST; } else { $this->_restParams = []; - if (function_exists('mb_parse_str')) { - mb_parse_str($this->getRawBody(), $this->_restParams); - } else { - parse_str($this->getRawBody(), $this->_restParams); - } + mb_parse_str($this->getRawBody(), $this->_restParams); } } return $this->_restParams;