mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
This commit is contained in:
commit
f61e8b48b6
1 changed files with 8 additions and 6 deletions
|
@ -175,6 +175,7 @@ class RequestHandlerComponent extends Component {
|
||||||
if (!class_exists('Xml')) {
|
if (!class_exists('Xml')) {
|
||||||
App::import('Core', 'Xml');
|
App::import('Core', 'Xml');
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
$xml = Xml::build(trim(file_get_contents('php://input')));
|
$xml = Xml::build(trim(file_get_contents('php://input')));
|
||||||
|
|
||||||
if (isset($xml->data)) {
|
if (isset($xml->data)) {
|
||||||
|
@ -182,6 +183,7 @@ class RequestHandlerComponent extends Component {
|
||||||
} else {
|
} else {
|
||||||
$controller->data = Xml::toArray($xml);
|
$controller->data = Xml::toArray($xml);
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue