upgrade to sabre32
This commit is contained in:
8
vendor/sabre/xml/lib/Service.php
vendored
8
vendor/sabre/xml/lib/Service.php
vendored
@@ -151,8 +151,14 @@ class Service {
|
||||
$r->contextUri = $contextUri;
|
||||
$r->xml($input);
|
||||
|
||||
$rootElementName = (array)$rootElementName;
|
||||
|
||||
foreach ($rootElementName as &$rEl) {
|
||||
if ($rEl[0] !== '{') $rEl = '{}' . $rEl;
|
||||
}
|
||||
|
||||
$result = $r->parse();
|
||||
if (!in_array($result['name'], (array)$rootElementName, true)) {
|
||||
if (!in_array($result['name'], $rootElementName, true)) {
|
||||
throw new ParseException('Expected ' . implode(' or ', (array)$rootElementName) . ' but received ' . $result['name'] . ' as the root element');
|
||||
}
|
||||
return $result['value'];
|
||||
|
||||
Reference in New Issue
Block a user