svn commit: r1756805 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: ilgrosso
Date: Thu Aug 18 15:03:24 2016
New Revision: 1756805

URL: http://svn.apache.org/viewvc?rev=1756805&view=rev
Log:
[COCOON-2351] Applying provided patch

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java?rev=1756805&r1=1756804&r2=1756805&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java Thu Aug 18 15:03:24 2016
@@ -93,7 +93,7 @@ implements SourceFactory,
 
             // Remove the protocol and the first '/'
             final int pos = location.indexOf(":/");
-            final String path = location.substring(pos+1);
+            final String path = location.substring(pos+2);
             
             // fix for #24093, we don't give access to files outside the context:
             if ( path.indexOf("../") != -1 ) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.