cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1756805 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/source/impl/ContextSourceFactory.java
Date Thu, 18 Aug 2016 15:03:24 GMT
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 ) {



Mime
View raw message