From 5298f510d27d75ca2591bea0c536de5dc1f670d6 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Fri, 3 Nov 2017 14:13:05 +0100 Subject: [PATCH] more readable --- lib/IdPAccountManager/SAMLMetadata.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/IdPAccountManager/SAMLMetadata.pm b/lib/IdPAccountManager/SAMLMetadata.pm index 7fb170c..06e16fa 100644 --- a/lib/IdPAccountManager/SAMLMetadata.pm +++ b/lib/IdPAccountManager/SAMLMetadata.pm @@ -4,7 +4,7 @@ use strict; use warnings; use English qw(-no_match_vars); -use XML::LibXML; +use XML::LibXML qw(:libxml); use IdPAccountManager::Tools; @@ -58,7 +58,7 @@ sub parse { foreach my $child ($EntityDescriptor->childNodes()) { ## Ignoringnodes of type XML::LibXML::Text or XML::LibXML::Comment - next unless (ref($child) =~ /^XML::LibXML::Element/); + next unless $child->nodeType() == XML_ELEMENT_NODE; if ($child->nodeName =~ /IDPSSODescriptor$/) { -- GitLab