Return-Path: Delivered-To: apmail-roller-commits-archive@www.apache.org Received: (qmail 52811 invoked from network); 11 Sep 2007 12:00:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 12:00:01 -0000 Received: (qmail 4410 invoked by uid 500); 11 Sep 2007 11:59:55 -0000 Delivered-To: apmail-roller-commits-archive@roller.apache.org Received: (qmail 4386 invoked by uid 500); 11 Sep 2007 11:59:54 -0000 Mailing-List: contact commits-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@roller.apache.org Delivered-To: mailing list commits@roller.apache.org Received: (qmail 4377 invoked by uid 99); 11 Sep 2007 11:59:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 04:59:54 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.22.44] (HELO atlassian01.managed.contegix.com) (63.246.22.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 12:01:25 +0000 Received: from atlassian01.managed.contegix.com (atlassian01.managed.contegix.com [127.0.0.1]) by atlassian01.managed.contegix.com (Postfix) with ESMTP id E43782F013C for ; Tue, 11 Sep 2007 06:59:28 -0500 (CDT) Message-ID: <95306023.1189511968932.JavaMail.j2ee@atlassian01.managed.contegix.com> Date: Tue, 11 Sep 2007 06:59:28 -0500 (CDT) From: "David Johnson (JIRA)" To: commits@roller.apache.org Subject: [Roller-JIRA] Updated: (ROL-1542) resource path in i18n directory or filename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://opensource.atlassian.com/projects/roller/browse/ROL-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Johnson updated ROL-1542: ------------------------------- Comment: was deleted > resource path in i18n directory or filename > ------------------------------------------- > > Key: ROL-1542 > URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1542 > Project: Roller > Issue Type: Bug > Environment: trunk > Reporter: Jian Liu > Assignee: David Johnson > Fix For: 4.0 > > Attachments: MultiWeblogURLStrategy_java.patch, rol-1542-screenshot1.jpg > > > if create a i18n name directory in a blog's resource space, then the resource path in resource url should be encoded. > add below method in URLUtilities.java > /** > * URL encode a path string using UTF-8. The path seprator '/' will not be encoded > */ > public static final String encodePath(String path) { > int i = path.indexOf('/'); > StringBuffer sb = new StringBuffer(); > while(i!=-1) { > sb.append(encode(path.substring(0,i))).append('/'); > path = path.substring(i+1); > i = path.indexOf('/'); > } > sb.append(path); > return sb.toString(); > } > then modified the getWeblogResourceURL method in MultiWeblogURLStrategy; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira