From 10d618a86963575f22da8852e346d555f390bbb4 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 28 Feb 2008 10:27:31 +0000 Subject: [PATCH] Utilities::getDOMChildren: Ignore comment elements. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@333 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Utilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index b0a45d44a..91d6ce1eb 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -582,8 +582,8 @@ class SimpleSAML_Utilities { for($i = 0; $i < $element->childNodes->length; $i++) { $child = $element->childNodes->item($i); - /* Skip text nodes. */ - if($child instanceof DOMText) { + /* Skip text nodes and comment elements. */ + if($child instanceof DOMText || $child instanceof DOMComment) { continue; } -- GitLab