|
@@ -182,7 +182,9 @@ public class EmailUtil {
|
|
|
html = html.replace("charset="+contentType.toLowerCase(),"charset=UTF-8");
|
|
|
html = html.replace("charset="+contentType.toUpperCase(),"charset=UTF-8");
|
|
|
}
|
|
|
- savePath = savePath.replaceAll("[/:*?\\\"<>|]","");
|
|
|
+ if(savePath.contains(":")){
|
|
|
+ savePath = savePath.replaceAll(":","");
|
|
|
+ }
|
|
|
FileUtils.write(new File(savePath), html);
|
|
|
}catch (Exception e){
|
|
|
logger.error(e.getMessage(),e);
|