Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
trunk
Description
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)Unknown macro: { 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;