🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[HttpFoundation] fixed typo
  • Loading branch information
fabpot committed May 12, 2011
commit 0848604ce111d2e37f9ea1eb2240edf1e430b8e6
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static public function createFromGlobals()
$request = new static($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER);

if ('application/x-www-form-urlencoded' == $request->server->get('CONTENT_TYPE')
&& in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET'), array('PUT', 'DELETE'))
&& in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE'))
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have an typo here (parse error), forgot to close bracket.

 if ('application/x-www-form-urlencoded' == $request->server->get('CONTENT_TYPE')
     && in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), array('PUT', 'DELETE'))
 ) {

parse_str($this->getContent(), $data);
$request->request = new ParameterBag($data);
Expand Down