cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/serialization LinkSerializer.java
Date Wed, 20 Mar 2002 17:00:25 GMT
vgritsenko    02/03/20 09:00:22

  Modified:    src/java/org/apache/cocoon/serialization LinkSerializer.java
  Log:
  Fix bug #6684
  
  Revision  Changes    Path
  1.6       +2 -1      xml-cocoon2/src/java/org/apache/cocoon/serialization/LinkSerializer.java
  
  Index: LinkSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/serialization/LinkSerializer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LinkSerializer.java	22 Feb 2002 07:03:55 -0000	1.5
  +++ LinkSerializer.java	20 Mar 2002 17:00:22 -0000	1.6
  @@ -62,7 +62,7 @@
   
   /**
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Id: LinkSerializer.java,v 1.5 2002/02/22 07:03:55 cziegeler Exp $
  + * @version CVS $Id: LinkSerializer.java,v 1.6 2002/03/20 17:00:22 vgritsenko Exp $
    */
   
   public class LinkSerializer extends ExtendedXLinkPipe implements Serializer, Poolable {
  @@ -95,6 +95,7 @@
       }
   
       private boolean traversable(String href) {
  +        if (href.length() == 0) return false;
           if (href.charAt(0) == '#') return false;
           if (href.indexOf("://") != -1) return false;
           if (href.startsWith("mailto:")) return false;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message