Browse Source

Changing RequestHandler to use CakeRequest::input()

mark_story 15 years ago
parent
commit
53b4a129ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Component/RequestHandlerComponent.php

+ 1 - 1
lib/Cake/Controller/Component/RequestHandlerComponent.php

@@ -174,7 +174,7 @@ class RequestHandlerComponent extends Component {
 
 		if ($this->requestedWith('xml')) {
 			try {
-				$xml = Xml::build(trim(file_get_contents('php://input')));
+				$xml = $controller->request->input('Xml::build');
 
 				if (isset($xml->data)) {
 					$controller->data = Xml::toArray($xml->data);