Skip to content

Commit

Permalink
Allow data: URIs as well as https:// URLs in mdui:Logo. The spec is u…
Browse files Browse the repository at this point in the history
…nclear about this but some people (e.g., SWITCH) are using it. I've asked the OASIS SAML TC to clarify the intent.
  • Loading branch information
iay committed Jan 31, 2013
1 parent a90b834 commit 8e55ad9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mdx/_rules/check_mdui.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,15 @@
Require that the URL starts with https://
This is a SHOULD in the specification; we treat it as a MUST here.
Exception: allow data: URIs as well.
-->
<xsl:if test="not(starts-with(., 'https://'))">
<xsl:call-template name="error">
<xsl:with-param name="m">mdui:Logo URL does not start with https://</xsl:with-param>
</xsl:call-template>
<xsl:if test="not(starts-with(., 'data:'))">
<xsl:call-template name="error">
<xsl:with-param name="m">mdui:Logo URL does not start with https://</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:template>

Expand Down

0 comments on commit 8e55ad9

Please sign in to comment.