You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2003/05/17 01:24:32 UTC

cvs commit: cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl XMLDBSource.java

gianugo     2003/05/16 16:24:32

  Modified:    src/blocks/xmldb/java/org/apache/cocoon/components/source/impl
                        XMLDBSource.java
  Log:
  Fixing a stack overflow (...we *need* unit tests...)
  
  Revision  Changes    Path
  1.4       +2 -2      cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSource.java
  
  Index: XMLDBSource.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSource.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLDBSource.java	16 May 2003 06:17:24 -0000	1.3
  +++ XMLDBSource.java	16 May 2003 23:24:32 -0000	1.4
  @@ -393,7 +393,7 @@
       }
   
       public String getScheme() {
  -        return this.getScheme();
  +        return url.substring(url.indexOf('/') - 1);
       }
   
       public SourceValidity getValidity() {