abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r588721 - /incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Date Fri, 26 Oct 2007 17:47:47 GMT
Author: jmsnell
Date: Fri Oct 26 10:47:46 2007
New Revision: 588721

URL: http://svn.apache.org/viewvc?rev=588721&view=rev
Log:
Properly escape the output of IRI.toString()

Modified:
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java?rev=588721&r1=588720&r2=588721&view=diff
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
(original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Fri Oct 26 10:47:46 2007
@@ -27,14 +27,6 @@
 
 import org.apache.abdera.i18n.io.CharUtils;
 import org.apache.abdera.i18n.io.InvalidCharacterException;
-import org.apache.abdera.i18n.iri.Constants;
-import org.apache.abdera.i18n.iri.Escaping;
-import org.apache.abdera.i18n.iri.HttpScheme;
-import org.apache.abdera.i18n.iri.IDNA;
-import org.apache.abdera.i18n.iri.IRI;
-import org.apache.abdera.i18n.iri.IRISyntaxException;
-import org.apache.abdera.i18n.iri.Scheme;
-import org.apache.abdera.i18n.iri.SchemeRegistry;
 import org.apache.abdera.i18n.unicode.Normalizer;
 
 public class IRI 
@@ -649,7 +641,7 @@
       buf.append(':');
     }
     buf.append(getSchemeSpecificPart());
-    return buf.toString();
+    return Escaping.encode(buf.toString(),Constants.IUNRESERVED,Constants.RESERVED,Constants.IPRIVATE);
   }
   
   public String toASCIIString() {



Mime
View raw message