Project

Profile

Help

Revision f9eb3a45

Added by Michael Kay 10 months ago

Missing part of fix for bug #4729

View differences:

latest10/hej/net/sf/saxon/functions/UnparsedTextFunction.java
63 63
        final Configuration config = context.getConfiguration();
64 64
        IntPredicate checker = config.getValidCharacterChecker();
65 65

  
66
        // Check that the URI scheme is allowed
67

  
68
        if (!config.isPermittedURI(absoluteURI)) {
69
            XPathException err = new XPathException(
70
                    "Document URI uses a disallowed URI scheme: " + absoluteURI.getScheme());
71
            err.setXPathContext(context);
72
            err.setErrorCode("FOUT1170");
73
            throw err;
74
        }
75

  
76 66
        // Use the URI machinery to validate and resolve the URIs
77 67

  
78 68
        Reader reader;

Also available in: Unified diff