Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # diff -u old/lib/xmlseclibs.php new/lib/xmlseclibs.php
- --- old/lib/xmlseclibs.php 2012-08-14 16:17:22.966402523 +0100
- +++ new/lib/xmlseclibs.php 2012-09-07 09:29:15.034185999 +0100
- @@ -150,11 +150,6 @@
- $withcomments - boolean indicating wether or not to include comments in canonicalized form
- */
- function C14NGeneral($element, $exclusive=FALSE, $withcomments=FALSE) {
- - /* IF PHP 5.2+ then use built in canonical functionality */
- - $php_version = explode('.', PHP_VERSION);
- - if (($php_version[0] > 5) || ($php_version[0] == 5 && $php_version[1] >= 2) ) {
- - return $element->C14N($exclusive, $withcomments);
- - }
- /* Must be element or document */
- if (! $element instanceof DOMElement && ! $element instanceof DOMDocument) {
- @@ -759,14 +754,11 @@
- $withComments = TRUE;
- break;
- }
- -/* Support PHP versions < 5.2 not containing C14N methods in DOM extension */
- - $php_version = explode('.', PHP_VERSION);
- - if (($php_version[0] < 5) || ($php_version[0] == 5 && $php_version[1] < 2) ) {
- +
- if (! is_null($arXPath)) {
- throw new Exception("PHP 5.2.0 or higher is required to perform XPath Transformations");
- }
- return C14NGeneral($node, $exclusive, $withComments);
- - }
- return $node->C14N($exclusive, $withComments, $arXPath, $prefixList);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement