Skip to content
Snippets Groups Projects
Commit c9409693 authored by srosse's avatar srosse
Browse files

OO-3418: don't rewrite URI with data: (patch D. Haag)

parent 175733e6
No related branches found
No related tags found
No related merge requests found
......@@ -632,7 +632,7 @@ public class AssessmentRenderFunctions {
<xsl:function name="qw:convert-link" as="xs:string">
<xsl:param name="uri" as="xs:string"/>
<xsl:choose>
<xsl:when test="starts-with($uri, 'http:') or starts-with($uri, 'https:') or starts-with($uri, 'mailto:')">
<xsl:when test="starts-with($uri, 'http:') or starts-with($uri, 'https:') or starts-with($uri, 'mailto:') or starts-with($uri, 'data:')">
<xsl:sequence select="$uri"/>
</xsl:when>
<xsl:otherwise>
......@@ -644,7 +644,7 @@ public class AssessmentRenderFunctions {
*/
public static final String convertLink(AssessmentObjectComponent component, ResolvedAssessmentItem resolvedAssessmentItem, String uri) {
if(uri != null && (uri.startsWith("http:") || uri.startsWith("https:") || uri.startsWith("mailto:"))) {
if(uri != null && (uri.startsWith("http:") || uri.startsWith("https:") || uri.startsWith("mailto:") || uri.startsWith("data:"))) {
return uri;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment