Skip to content

Commit

Permalink
Don't permit a scope value which is just "ac.uk", apparently a common…
Browse files Browse the repository at this point in the history
… error in metadata we receive.
  • Loading branch information
iay committed Nov 25, 2010
1 parent aaf5924 commit be3aa4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/check_misc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@
<xsl:call-template name="fatal">
<xsl:with-param name="m">empty xml:lang attribute</xsl:with-param>
</xsl:call-template>
</xsl:template>


<!--
A Shibboleth scope shouldn't be just "ac.uk".
-->
<xsl:template match="shibmd:Scope[.='ac.uk']">
<xsl:call-template name="fatal">
<xsl:with-param name="m">bare 'ac.uk' scope not permitted</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit be3aa4e

Please sign in to comment.