incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r939632 - /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
Date Fri, 30 Apr 2010 10:54:38 GMT
Author: thorsten
Date: Fri Apr 30 10:54:37 2010
New Revision: 939632

URL: http://svn.apache.org/viewvc?rev=939632&view=rev
Log:
DROIDS-83
Reporter: Richard Frovarp
Patch: Richard Frovarp
review: thorsten

Modified:
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java?rev=939632&r1=939631&r2=939632&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
(original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/parse/html/LinkExtractor.java
Fri Apr 30 10:54:37 2010
@@ -128,6 +128,7 @@ public class LinkExtractor extends Defau
    * @return the URI or null if the URI is not valid.
    */
   private URI getURI(String target) {
+    target = target.replaceAll("\\s", "%20");
     try {
       if (!target.toLowerCase().startsWith("javascript")
           && !target.contains(":/")) {
@@ -142,4 +143,4 @@ public class LinkExtractor extends Defau
     }
     return null;
   }
-}
\ No newline at end of file
+}



Mime
View raw message