Project

Profile

Help

Revision affa36fd

Added by Norman Tovey-Walsh 6 months ago

Fix issue #4813 by accepting http: or https: for relevant URIs

View differences:

latest10/hej/net/sf/saxon/lib/StandardEntityResolver.java
40 40
     * entity resolver
41 41
     *
42 42
     * @param publicId the public identifier of the DTD or entity
43
     * @param systemId the system identifier of the DTD or entity
43
     * @param systemId the system identifier of the DTD or entity. For domains that are known
44
     *                 to redirect http: to https:, either scheme is accepted.
44 45
     * @param fileName the fileName of the Saxon local copy of the
45 46
     *                 resource, relative to the data directory in the JAR file
46 47
     */
......
54 55
        }
55 56
        if (systemId != null) {
56 57
            systemIds.put(systemId, fileName);
58
            if (systemId.startsWith("http://www.w3.org/")) {
59
                String httpsId = "https://" + systemId.substring(7);
60
                systemIds.put(httpsId, fileName);
61
            }
57 62
        }
58 63
    }
59 64

  

Also available in: Unified diff