jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r617424 - /jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
Date Fri, 01 Feb 2008 10:24:24 GMT
Author: jukka
Date: Fri Feb  1 02:24:18 2008
New Revision: 617424

URL: http://svn.apache.org/viewvc?rev=617424&view=rev
Log:
1.4: Adapted fix from revision 617384 (JCR-1355)

Modified:
    jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java

Modified: jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java?rev=617424&r1=617423&r2=617424&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/DefaultContentHandler.java
Fri Feb  1 02:24:18 2008
@@ -226,4 +226,15 @@
         handler.startPrefixMapping(prefix, uri);
     }
 
+    /**
+     * Returns an empty stream to prevent the XML parser from attempting
+     * to resolve external entity references.
+     *
+     * @see https://issues.apache.org/jira/browse/JCR-1355
+     */
+    public InputSource resolveEntity(String publicId, String systemId)
+            throws SAXException {
+        return new InputSource(new ByteArrayInputStream(new byte[0]));
+    }
+
 }



Mime
View raw message