|
@@ -611,7 +611,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
|
*/
|
|
*/
|
|
public static String getFileStaticPath(String filename, String temp) {
|
|
public static String getFileStaticPath(String filename, String temp) {
|
|
filename = filename.replaceAll("\\\\", "/");
|
|
filename = filename.replaceAll("\\\\", "/");
|
|
- return filename.replace(temp, "/file/statics/");
|
|
|
|
|
|
+ return filename.replace(temp.replaceAll("\\\\", "/"), "/file/statics/");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -634,7 +634,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
|
*/
|
|
*/
|
|
public static String getFileAbsolutePath(String filename, String temp) {
|
|
public static String getFileAbsolutePath(String filename, String temp) {
|
|
filename = filename.replaceAll("\\\\", "/");
|
|
filename = filename.replaceAll("\\\\", "/");
|
|
- return filename.replace("/file/statics/", temp);
|
|
|
|
|
|
+ return filename.replace("/file/statics/", temp.replaceAll("\\\\", "/"));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|