readMetadata.php does not load proper SAML1 IdP endpoints
We are using version 1.19 of the WAYF.
We were reported that when contacted using the old WAYF protocol (not Discovery Service), the SWITCH WAYF did not redirect the end user to the right SAML1 URL, but to a SAML2 endpoint instead.
I found out that readMetadata.php processIDPRoleDescriptor() function was not able to extract the SAML1 endpoint in all circumstances, depending on the order where endpoints were listed in the SAML metadata.
Attached is a patch that seems to fix the problem.