Browse Source

Removed fallback from mb_parse_str to parse_str from Request::getRestParams since mb_ availability is Yii2 requirement

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
8c98d99596
  1. 6
      framework/yii/web/Request.php

6
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;

Loading…
Cancel
Save