[Pkg-owncloud-commits] [php-sabre-vobject] 102/341: Remove OPTION_FORGIVING for unknown XML elements.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 8acf41a8da7dbdd89012e260380cdb42a768ef08
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 12 16:00:54 2015 +0100
Remove OPTION_FORGIVING for unknown XML elements.
---
lib/Parser/XML.php | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 3021b4d..8832eef 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -194,13 +194,9 @@ class XML extends Parser {
$this->parseVcalendarComponents($currentComponent);
$parentComponent->add($currentComponent);
- }
- break;
- default:
- if(!($this->options & self::OPTION_FORGIVING)) {
- throw new \Exception('XML is not well-formed: unexpected tag ' . $children['name']);
}
+ break;
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list