Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 45803 invoked from network); 9 Dec 2005 17:11:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Dec 2005 17:11:19 -0000 Received: (qmail 70528 invoked by uid 500); 9 Dec 2005 17:11:19 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 70456 invoked by uid 500); 9 Dec 2005 17:11:18 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 70445 invoked by uid 99); 9 Dec 2005 17:11:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2005 09:11:18 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 09 Dec 2005 09:11:17 -0800 Received: (qmail 45605 invoked by uid 65534); 9 Dec 2005 17:10:57 -0000 Message-ID: <20051209171057.45604.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r355544 - /forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java Date: Fri, 09 Dec 2005 17:10:57 -0000 To: svn@forrest.apache.org From: rgardler@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: rgardler Date: Fri Dec 9 09:10:48 2005 New Revision: 355544 URL: http://svn.apache.org/viewcvs?rev=355544&view=rev Log: if the location is an http: URL then URLEncode the result before returning it (fixes FOR-736) Modified: forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java Modified: forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java URL: http://svn.apache.org/viewcvs/forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java?rev=355544&r1=355543&r2=355544&view=diff ============================================================================== --- forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java (original) +++ forrest/trunk/main/java/org/apache/forrest/locationmap/lm/LocationMap.java Fri Dec 9 09:10:48 2005 @@ -16,6 +16,7 @@ */ package org.apache.forrest.locationmap.lm; +import java.net.URLEncoder; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -287,7 +288,11 @@ getLogger().error(msg);; throw new Exception(msg); } - + + if (location.startsWith("http:")) { + location = URLEncoder.encode(location, "UTF-8"); + } + return location; }