Commit 8c98d995 by Alexander Makarov

Removed fallback from mb_parse_str to parse_str from Request::getRestParams…

Removed fallback from mb_parse_str to parse_str from Request::getRestParams since mb_ availability is Yii2 requirement
parent e67b9a84
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment