abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r772324 - in /abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n: iri/IRI.java text/CharUtils.java
Date Wed, 06 May 2009 15:49:57 GMT
Author: jmsnell
Date: Wed May  6 15:49:56 2009
New Revision: 772324

URL: http://svn.apache.org/viewvc?rev=772324&view=rev
Log:
Fix for https://issues.apache.org/jira/browse/ABDERA-225

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

Modified: abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java?rev=772324&r1=772323&r2=772324&view=diff
==============================================================================
--- abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
(original)
+++ abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/iri/IRI.java
Wed May  6 15:49:56 2009
@@ -529,7 +529,7 @@
             UrlEncoding.encode(
                 UrlEncoding.decode(
               segments[n]),
-              Profile.IPATHNODELIMS.filter()));
+              Profile.IPATHNODELIMS_SEG.filter()));
       }
     }
     if (path.endsWith("/") || path.endsWith("/.")) 

Modified: abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/CharUtils.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/CharUtils.java?rev=772324&r1=772323&r2=772324&view=diff
==============================================================================
--- abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/CharUtils.java
(original)
+++ abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/text/CharUtils.java
Wed May  6 15:49:56 2009
@@ -557,6 +557,15 @@
         }
       }
     ),
+    IPATHNODELIMS_SEG(
+      new Filter() {
+        public boolean accept(int codepoint) {
+          return !is_ipathnodelims(codepoint) && 
+            codepoint != '@' && 
+            codepoint != ':';
+        }
+      }
+    ),
     IREGNAME(
       new Filter() {
         public boolean accept(int codepoint) {



Mime
View raw message