Skip to content

Commit

Permalink
Check for badly formatted e-mail addresses in EmailAddress metadata e…
Browse files Browse the repository at this point in the history
…lements.
  • Loading branch information
iay committed May 22, 2009
1 parent b76b509 commit ffa03e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/check.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
xmlns:set="http://exslt.org/sets"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:idpdisc="urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol"
xmlns:ukfxMail="xalan://uk.org.ukfederation.xalan.Mail"
xmlns:ukfxm="xalan://uk.org.ukfederation.xalan.Members"
xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

Expand Down Expand Up @@ -196,6 +197,15 @@
</xsl:template>


<!--
Check for badly formatted e-mail addresses.
-->
<xsl:template match="md:EmailAddress[ukfxMail:dodgyAddress(.)]">
<xsl:call-template name="fatal">
<xsl:with-param name="m">badly formatted e-mail address: '<xsl:value-of select='.'/>'</xsl:with-param>
</xsl:call-template>
</xsl:template>

<!--
Common template to call to report a fatal error on some element within an entity.
-->
Expand Down

0 comments on commit ffa03e6

Please sign in to comment.